Security issue with external entity loading in XML without enabling it
CVE-2023-3823
Key Information:
- Vendor
PHP Group
- Status
- PHP
- CVE ID
- CVE ID:
- CVE-2023-3823
- Vendor
- CVE Published:
- 11 August 2023
- Fixed in
- Fixed in:
- 8.0.30, 8.1.22, 8.2.8
Timeline
Exploit known 2 days before it was disclosed
Vulnerability published
- ๐พ
Exploit known to exist
- ๐ฐ
First article discovered by Information Security Newspaper
Vulnerability Reserved
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Partly: Exploitation or a working exploit reported
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Update to a fixed version
Several version ranges are affected; the full list is under Affected Version(s).
Install the PHP release that fixes your version line, or later:
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach PHP. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Look for signs of compromise
Exploitation has been reported, so check logs on exposed PHP systems for unusual requests or new processes from before you patched.
4Why it's rated "Patch this week"
- Exploitation or a working exploit has been reported.
- It can be exploited remotely without credentials.
- Its CVSS severity is high (7.5).
What is CVE-2023-3823?
In specific versions of PHP, the XML functions incorrectly rely on a global state managed by libxml to handle configuration variables related to external entity loading. This state remains unchanged until altered by user functions, but because it is process-wide, other modules, such as ImageMagick, can modify it, potentially enabling external entity loading unintentionally. As a result, if an attacker can control the XML input passed to these functions, they may exploit this behavior to parse external XML while loading local entities. This could lead to the exposure of sensitive local files accessible to PHP, persisting across multiple requests within the same process until it is terminated.
Affected Version(s)
PHP 8.0.*
PHP 8.0.* < 8.0.30
PHP 8.1.* < 8.1.22
News Articles
Enhanced Security for Ubuntu Users: Key Updates Address Critical PHP Vulnerabilities
Explore the recent updates targeting critical vulnerabilities in PHP, enhancing digital security for Ubuntu users. Learn about CVE-2023-3823 and CVE-2023-3824, the impact of timely updates, and the broader implications for online security in today's interconnected world.
Code exploiting two critical PHP(< 8.0.30) vulnerabilities published
Code exploiting two critical PHP(< 8.0.30) vulnerabilities published - Vulnerabilities - Information Security Newspaper | Hacking News
References
More PHP Group Vulnerabilities
Request Smuggling in PHP-FPM
Use-After-Free Vulnerability in PHP Affects Multiple Versions and Releases
Remote Code Execution Vulnerability in PHP Session Management
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction
