VDB

CVE-2023-3824

CVE-2023-3824 PUBLISHED CVSS 9.4 CRITICAL

Buffer overflow and overread in phar_dir_read()

Reported by php · Published August 11, 2023

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php8.1-bcmathAmazon Linux8.1.22-1.amzn2023.0.1
php8.2-develAmazon Linux8.2.9-1.amzn2023.0.2
php8.1-ffiAmazon Linux8.1.22-1.amzn2023.0.1
php8.2-mysqlndAmazon Linux8.2.9-1.amzn2023.0.2
php-mysqlndAmazon Linux5.4.16-46.amzn2.0.6
php-cliAmazon Linux5.4.16-46.amzn2.0.6
php-ldapAmazon Linux5.4.16-46.amzn2.0.6
php8.2-xmlAmazon Linux8.2.9-1.amzn2023.0.2
php-gdAmazon Linux5.4.16-46.amzn2.0.6
php-embeddedAmazon Linux5.4.16-46.amzn2.0.6
php8.2-gdAmazon Linux8.2.9-1.amzn2023.0.2
php-fpmAmazon Linux5.4.16-46.amzn2.0.6

76 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Affected products

VendorProductVersions
PHP GroupPHP8.0.*, 8.1.*, 8.2.*
amazon:2023php8.1-bcmath0
amazon:2023php8.2-devel0
amazon:2023php8.1-ffi0
amazon:2023php8.2-mysqlnd0
amazon:2php-mysqlnd0
amazon:2php-cli0
amazon:2php-ldap0
amazon:2023php8.2-xml0
amazon:2php-gd0
amazon:2php-embedded0
amazon:2023php8.2-gd0
amazon:2php-fpm0
amazon:2php-process0
amazon:2023php8.1-dba0
amazon:2023php8.1-opcache0
amazon:2php-bcmath0
alpinephp80
amazon:2023php8.2-ldap0
amazon:2023php8.2-embedded0

…and 62 more

Timeline

  • Aug 6, 2023 CVE Published
  • Aug 11, 2023 EPSS Score (30 in total, the first dated here)
  • May 6, 2024 VulnCheck KEV Exploitation (3 in total, the first dated here)
  • Aug 6, 2026 Coalition ESS Score
  • Nov 21, 2026 Security Advisory (9 in total, the first dated here)
  • Nov 22, 2026 Distribution Patch (7 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-3824
vulnetix vdb fixes CVE-2023-3824

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-3824/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›