{"vuln_id":"CVE-2023-3823","aliases":["CVE-2023-3824","CVE-2024-2756","CVE-2024-3096","GHSA-3qrf-m4j2-pcrr"],"description":"php8.2 - security update","published_at":"2023-08-05T04:14:38Z","modified_at":"2026-11-20T01:19:09.968468Z","first_seen_at":"2026-11-21T19:15:06.060528Z","severity":"high","severity_source":"cvss","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","cwe":["CWE-611"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.0164,"epss_percentile":0.76876,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-3823"},"matched_alias":null,"items":[{"id":484,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DSA-5661-1 / CVE-2023-3823 - php8.2 - security update","summary":"Affected: Debian:12:php8.2\n\nFixed in: 8.2.18-1~deb12u1","url":"https://osv.dev/vulnerability/DSA-5661-1","published_at":"2024-04-15T00:00:00Z","updated_at":"2026-11-20T01:19:09.968468Z","fetched_at":"2026-11-21T19:15:05.963731Z","severity":"critical","cvss_score":9.8,"epss":0.38115,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2023-3823","vuln_ids":["CVE-2022-31629","CVE-2023-3823","CVE-2023-3824","CVE-2024-2756","CVE-2024-3096","DSA-5661-1","GHSA-3QRF-M4J2-PCRR","GHSA-C43M-486J-J32P","GHSA-H746-CJRR-WFMR","GHSA-JQCX-CCGC-XWHV","GHSA-WPJ3-HF5J-X4V4"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":379,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/484","html":"https://vulnwatch.ve1ve2.com/item/484"}},{"id":505,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DEBIAN-CVE-2023-3823 / CVE-2023-3823 - 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 varia…","summary":"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.\n\nAffected: Debian:12:php8.2\n\nFixed in: 8.2.18-1~deb12u1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2023-3823","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2023-3823","published_at":"2023-08-11T06:15:09.283000Z","updated_at":"2026-10-26T18:01:52.091365Z","fetched_at":"2026-11-21T19:15:05.963761Z","severity":"high","cvss_score":7.5,"epss":0.0164,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2023-3823","vuln_ids":["CVE-2023-3823","CVE-2023-3824","CVE-2024-2756","CVE-2024-3096","DEBIAN-CVE-2023-3823","GHSA-3QRF-M4J2-PCRR"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":379,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/505","html":"https://vulnwatch.ve1ve2.com/item/505"}},{"id":12680,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-3qrf-m4j2-pcrr / CVE-2023-3823: Security issue with external entity loading in XML without enabling it","summary":"Security issue with external entity loading in XML without enabling it ### Summary After working on the issue some days, we more and more come to the assumption, that the actual issue is lower in the stack than the Nextcloud Server's PHP code. We were able to isolate it to a few lines of plain PHP code (but seemling only after performing a \"Nextcloud login\") ### Details After working on the issue some days, we more and more come to the assumption, that the actual issue is lower in the stack than the Nextcloud Server's PHP code. We were able to isolate it to a few lines of plain PHP code (but seemling only after performing a \"Nextcloud login\"), see POC below. #### Randomness The behaviour seems to depend on some \"random\" factors. A suggestion at the moment is that it's working on the first run in a PHP/Apache process more often then on reused. - We **were never able** to produce it on Nginx with PHP-FPM - We **were never able** to produce it on CLI - We **were able** to reproduce it with latest maintenance versions of PHP 8.0, 8.1 and 8.2 together with Apache2 on Debian - We **were unable** to reproduce it with latest maintenance versions of PHP using Apache2 on Ubuntu, but the original reporter seems to be running on Ubuntu. We are sorry that we are unable to give a clearer indication here, but think that the issue is to critical to ignore or keep to ourselves, just because we fail to give clear reproduction systems, because to us it seems like any system consuming XML is affected. The most reliable system to reproduce it on is our \"Developer Docker\": https://github.com/juliushaertl/nextcloud-docker-dev/#standalone-containers but that comes with quite some overhead. The enabled PHP modules and PHPINFO output is available here https://gist.github.com/juliushaertl/b458983b5fe87b31bd98ff2dc2468e97 On that system a Nextcloud user admin with password admin is automatically created and the attack can then be executed with a PROPFIND against the dav endpoint: ``` PROPFIND /remote.php/dav/files// %remote; %intern; n%trick;]> ``` We hope that you can shed light on the situation, to help keeping the PHP world secure, by either confirm there is an issue somewhere inside PHP, libxml2, Apache2 or something else, or pointing us to something that brings clearness why it only happens sometimes. ### PoC ```php %remote; %intern; %trick;]>\"; libxml_use_internal_errors(true); $dom = new DOMDocument(); $dom->loadXML($xml); echo $dom->textContent; foreach (libxml_get_errors() as $error) { var_dump($error); } ``` If you don't want to run code from our servers, you can replace Patched: 8.0.30","url":"https://github.com/php/php-src/security/advisories/GHSA-3qrf-m4j2-pcrr","published_at":"2023-08-05T04:14:38Z","updated_at":"2023-08-05T04:14:38Z","fetched_at":"2026-11-22T14:05:37.431204Z","severity":"high","cvss_score":8.6,"epss":0.0164,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php-src","vuln_id":"CVE-2023-3823","vuln_ids":["CVE-2023-3823","CVE-2023-3824","CVE-2024-2756","CVE-2024-3096","GHSA-3QRF-M4J2-PCRR"],"tags":["repo-advisory","CWE-611","security","repo:php/php-src","stack"],"cluster_id":11793,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12680","html":"https://vulnwatch.ve1ve2.com/item/12680"}}]}