{"id":"CVE-2023-3824","published":"2023-08-11T05:48:34Z","modified":"2025-02-13T17:01:48Z","title":"Buffer overflow and overread in phar_dir_read()","vendor":"PHP Group","product":"PHP","tier":"core","eol":null,"affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 8.0.*, < 8.0.30",">= 8.1.*, < 8.1.22",">= 8.2.*, < 8.2.8"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"A buffer overflow and overread in the phar_dir_read() function of PHP (the PHP Group's scripting language) stems from insufficient length checking while reading PHAR directory entries when a phar file is loaded. An attacker who can get a crafted phar file loaded by affected PHP versions (8.0 before 8.0.30, 8.1 before 8.1.22, and 8.2 before 8.2.8) could trigger a stack buffer overflow, potentially causing memory corruption or remote code execution, with no privileges, authentication, or user interaction required and network access as the attack vector.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:53:54Z"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.21786,"percentile":0.97633,"date":"2026-10-29","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-05-06","exploitedFirstSeen":"2024-05-06","ransomware":true,"evidence":[{"url":"https://8813571.fs1.hubspotusercontent-na1.net/hubfs/8813571/The%20471%20Cyber%20Threat%20Report%202024.pdf","date":"2024-05-06"},{"url":"https://decoded.avast.io/threatresearch/avast-q1-2024-threat-report/","date":"2024-05-14"},{"url":"https://intel471.com/blog/assessing-the-disruptions-of-ransomware-gangs","date":"2024-07-01"}],"evidenceTotal":3,"provenance":"source"},"exploited":true,"otx":{"pulseCount":5,"pulses":[{"name":"Intel is bad awy","url":"https://otx.alienvault.com/pulse/67c0cdc35112c5919563a334","created":"2025-02-27"},{"name":"Getting a taste of your own medicine: Threat actor MUT-1244 targets offensive actors, leaking hundreds of thousands of credentials |  Datadog Security Labs","url":"https://otx.alienvault.com/pulse/676040f05fd438a6eec5c7f6","created":"2024-12-16"},{"name":"ACTUALIZACION | PHP vulnerabilities | Ubuntu security notices | Ubuntu","url":"https://otx.alienvault.com/pulse/65ddfd6c79f1b1d1b855acba","created":"2024-02-27"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - January 2024","url":"https://otx.alienvault.com/pulse/65c0fd55c5d3c780a06aa227","created":"2024-02-05"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - October 2023","url":"https://otx.alienvault.com/pulse/6531fa57b7edb6c002b800e5","created":"2023-10-20"}],"provenance":"machine"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-jqcx-ccgc-xwhv","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7NBF77WN6DTVTY2RE73IGPYD6M4PIAWA/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230825-0001/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00002.html","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2023-44452","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-44452","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":1,"earliest":"2024-03-18","earliestUrl":"https://github.com/jhonnybonny/CVE-2023-3824","repos":[{"name":"jhonnybonny/CVE-2023-3824","url":"https://github.com/jhonnybonny/CVE-2023-3824","stars":3,"created":"2024-03-18"},{"name":"bluefish3r/poc-cve","url":"https://github.com/bluefish3r/poc-cve","stars":0,"created":"2025-01-11"}]},"first":{"date":"2024-03-18","source":"PoC-in-GitHub","url":"https://github.com/jhonnybonny/CVE-2023-3824"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2023-08-11","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2023-3824","provenance":"source"},{"date":"2024-03-18","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/jhonnybonny/CVE-2023-3824","provenance":"source"},{"date":"2024-05-06","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://8813571.fs1.hubspotusercontent-na1.net/hubfs/8813571/The%20471%20Cyber%20Threat%20Report%202024.pdf","provenance":"source"}],"speed":{"daysToPublicExploit":220,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":77.9,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 906 days ago"},{"name":"Known ransomware use","points":10.0,"detail":"VulnCheck KEV: Known"},{"name":"EPSS percentile","points":19.53,"detail":"percentile 0.9763"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos"},{"name":"Mentioned in OTX pulses","points":1.77,"detail":"5 pulses"},{"name":"CVSS severity","points":6.58,"detail":"base score 9.4"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}