# CVE-2023-3824: Buffer overflow and overread in phar_dir_read()

- Severity: Critical 9.4 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 21.8%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-11T05:48:34.082Z
- Modified: 2026-09-08T08:48:18.319Z
- Also known as: BIT-LIBPHP-2023-3824, BIT-PHP-2023-3824, BIT-PHP-MIN-2023-3824, GHSA-jqcx-ccgc-xwhv
- Weaknesses: CWE-119
- Assigned by: php

## Description

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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.0.* before 8.0.30; from 8.1.* before 8.1.22; from 8.2.* before 8.2.8
- php php: from 8.0.0 before 8.0.30; from 8.1.0 before 8.1.22; from 8.2.0 before 8.2.9
- fedoraproject fedora: 38
- debian debian_linux: 10.0
- libphp (Bitnami): from 8.0.0 before 8.0.30; from 8.1.0 before 8.1.22; from 8.2.0 before 8.2.9
- php (Bitnami): from 8.0.0 before 8.0.30; from 8.1.0 before 8.1.22; from 8.2.0 before 8.2.9
- php-min (Bitnami): from 8.0.0 before 8.0.30; from 8.1.0 before 8.1.22; from 8.2.0 before 8.2.9

## Every score

- php: CVSS:3.1 9.4 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/php/php-src/security/advisories/GHSA-jqcx-ccgc-xwhv> (exploit, advisory, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7NBF77WN6DTVTY2RE73IGPYD6M4PIAWA/> (discussion, mailing-list)
- <https://security.netapp.com/advisory/ntap-20230825-0001/> (advisory, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00002.html> (discussion, mailing-list)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-3824> (web)

## Sources

- CVE List: [CVE-2023-3824](https://www.cve.org/CVERecord?id=CVE-2023-3824), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-3824](https://nvd.nist.gov/vuln/detail/CVE-2023-3824), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2023-3824](https://osv.dev/vulnerability/BIT-LIBPHP-2023-3824), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2023-3824](https://osv.dev/vulnerability/BIT-PHP-2023-3824), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2023-3824](https://osv.dev/vulnerability/BIT-PHP-MIN-2023-3824), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-3824 · Whole record: https://cve.day/CVE-2023-3824.json · Rebuilt by cve.day 2026-11-25T22:58:27.070Z
