cbcvebase.
CVE-2023-3824
published 2023-08-11

CVE-2023-3824: In PHP version 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient…

PriorityP185critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
ITWVulnCheck KEVRansomware
Exploited in the wild
EPSS
21.79%
97.6th percentile
In PHP version 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.

Affected

12 ranges
VendorProductVersion rangeFixed in
debiandebian_linux——
debianphp7.4< php7.4 7.4.33-1+deb11u5 (bullseye)php7.4 7.4.33-1+deb11u5 (bullseye)
debianphp8.2< php7.4 7.4.33-1+deb11u5 (bullseye)php7.4 7.4.33-1+deb11u5 (bullseye)
fedoraprojectfedora——
msrcazl3_php_8.3.19-1_on_azure_linux_3.0——
msrccbl2_php_8.1.22-1_on_cbl_mariner_2.0——
phpphp>= 8.0.0 < 8.0.308.0.30
phpphp>= 8.1.0 < 8.1.228.1.22
phpphp>= 8.2.0 < 8.2.98.2.9
php_groupphp>= 8.0.* < 8.0.308.0.30
php_groupphp>= 8.1.* < 8.1.228.1.22
php_groupphp>= 8.2.* < 8.2.88.2.8

Detection & IOCsextracted from sources · hover to see the quote

  • →Trigger condition is loading a specially crafted .phar archive that causes a stack buffer overflow in phar_dir_read() due to insufficient length checking on PHAR directory entries ↗
  • →Vulnerable function is phar_dir_read(); monitor for crashes or anomalous memory behavior when PHP processes .phar files via this function ↗
  • →Attack vector is remote over HTTP (no authentication required); prioritize detection on internet-facing PHP applications that accept or process user-supplied .phar files ↗
  • ·Affected PHP versions are 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8; versions outside these ranges (e.g., PHP 7.x) are not affected per Red Hat analysis ↗
  • ·Red Hat Enterprise Linux 6, 7, and OpenShift Dev Spaces are confirmed not affected; rh-php73-php (RHSCL) will not be fixed ↗
  • ·Ubuntu USN-6305-2 patch for this CVE introduced a regression in XML parsing on Ubuntu 16.04 LTS and 18.04 LTS; USN-6305-3 was issued to correct it — verify the regression fix is also applied ↗

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv9.8CRITICAL
vulncheck9.4CRITICAL
vendor_oracle9.8CRITICAL
vendor_debian9.4CRITICAL
vendor_msrc9.4CRITICAL
vendor_redhat9.4CRITICAL
vendor_ubuntu8.6HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.