CVE Program
CNA-CVE-2023-3824
Buffer overflow and overread in phar_dir_read()
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PHP | php | From 8.0 before 8.0.30 (fixed in 8.0.30) From 8.1 before 8.1.22 (fixed in 8.1.22) From 8.2 before 8.2.8 (fixed in 8.2.8) |
References
- https://www.cve.org/CVERecord?id=CVE-2023-3824
- https://github.com/php/php-src/security/advisories/GHSA-jqcx-ccgc-xwhv
- https://lists.fedoraproject.org/archives/list/[email protected]/message/7NBF77WN6DTVTY2RE73IGPYD6M4PIAWA/
- https://security.netapp.com/advisory/ntap-20230825-0001/
- https://lists.debian.org/debian-lts-announce/2023/09/msg00002.html