# CVE-2023-3823: Security issue with external entity loading in XML without enabling it

- Severity: High 8.6 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/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): 1.64%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-11T05:42:25.771Z
- Modified: 2026-09-08T08:48:18.275Z
- Also known as: BIT-LIBPHP-2023-3823, BIT-PHP-2023-3823, BIT-PHP-MIN-2023-3823, GHSA-3qrf-m4j2-pcrr
- Weaknesses: CWE-611
- Assigned by: php

## Description

In PHP versions 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8 various XML functions rely on libxml global state to track configuration variables, like whether external entities are loaded. This state is assumed to be unchanged unless the user explicitly changes it by calling appropriate function. However, since the state is process-global, other modules - such as ImageMagick - may also use this library within the same process, and change that global state for their internal purposes, and leave it in a state where external entities loading is enabled. This can lead to the situation where external XML is parsed with external entities loaded, which can lead to disclosure of any local files accessible to PHP. This vulnerable state may persist in the same process across many requests, until the process is shut down.

(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 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/php/php-src/security/advisories/GHSA-3qrf-m4j2-pcrr> (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-3823> (web)

## Sources

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

---

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