Buffer overflow in PHP
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 length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.4 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L.
EPSS exploit prediction
EPSS 0.218, 97.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP
- PHP Group — versions 8.0.*, 8.1.*, 8.2.*
- Debian Linux — versions 10.0
- Fedoraproject Fedora — versions 38
Weakness classification (CWE)
Public exploits and proof-of-concept code
15 public repositories with exploit or proof-of-concept code for this CVE:
- jhonnybonny/CVE-2023-3824 (3 stars, last pushed 2024-03-18): Vulnerability in PHP Phar files, due to buffer overflow, arises from insufficient length checks on file names within the Phar archive. Malicious actors can craft Phar files with long file names, lead…
- dadosneurais/cve-2023-3824 (last pushed 2025-09-23)
- bluefish3r/poc-cve (last pushed 2025-01-11): poc-cve-2023-3824
- baesh3r/poc-CVE-2023-3824
- exploitdevelop/CVE-2023-3824
- fr33c0d3/poc-cve-2023-3824
- m1sn0w/CVE-2023-3824
- NewLockBit/CVE-2023-3824-PHP-to-RCE
- NewLockBit/CVE-2023-3824-PHP-to-RCE-LockBit-LEAK
- NewLockBit/CVE-2023-3824-PHP-to-RCE-National-Crime-AgencyLEAK
5 more are listed on the interactive page.
Also mentioned in 8 other repositories (ARPSyndicate/cve-scores, fkie-cad/nvd-json-data-feeds, htankhaishan/ASC, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/php/php-src/security/advisories/GHSA-jqcx-ccgc-xwhv (Exploit, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)
- security.netapp.com/advisory/ntap-20230825-0001/ (Third Party Advisory)
- lists.debian.org/debian-lts-announce/2023/09/msg00002.html (Mailing List)
This CVE has public exploit evidence. See the latest CVEs with public exploits.