Buffer Overflow in PHP
CVE-2023-3824
Key Information:
- Vendor
PHP Group
- Status
- PHP
- CVE ID
- CVE ID:
- CVE-2023-3824
- Vendor
- CVE Published:
- 11 August 2023
- Fixed in
- Fixed in:
- 8.0.30, 8.1.22, 8.2.8
Timeline
Exploit known 211 days after it was published
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
- ๐ฅ
Vulnerability reached the number 1 worldwide trending spot
- ๐
Vulnerability started trending
Vulnerability published
- ๐ฐ
First article discovered by Information Security Newspaper
Vulnerability Reserved
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Yes: Public exploit code (1 proof-of-concept)
- 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
Exploit code is public, so check logs on exposed PHP systems for unusual requests or new processes from before you patched. The 1 public proof-of-concept show what an attack looks like.
4Why it's rated "Patch this week"
- Exploit code is public, so attacks are easy to copy.
- It can be exploited remotely without credentials.
- EPSS gives it a 21.7% chance of exploitation in the next 30 days.
- Its CVSS severity is critical (9.8).
What is CVE-2023-3824?
CVE-2023-3824 is a vulnerability in PHP, specifically affecting versions 8.0.* before 8.0.30, 8.1.* before 8.1.22, and 8.2.* before 8.2.8. The flaw occurs when loading PHAR files, where insufficient length checking while reading PHAR directory entries can lead to a stack buffer overflow. An attacker can exploit this vulnerability to achieve memory corruption or potentially execute arbitrary code.
This vulnerability has been exploited in the wild, indicating active attempts to take advantage of the flaw in various environments.
Potential Impact of CVE-2023-3824
-
Memory Corruption: An attacker can manipulate the stack memory, potentially causing application crashes or unpredictable behavior.
-
Remote Code Execution: Successful exploitation may allow an attacker to execute arbitrary code on the affected system, compromising its integrity and security.
Affected Version(s)
PHP 8.0.*
PHP 8.0.* < 8.0.30
PHP 8.1.* < 8.1.22
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
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.
National Crime Agency smashes LockBit infrastructure, grabs 1,000 decryption keys
Did NCA, FBI deploy an exploit for PHP vulnerability CVE-2023-3824 to break the prolific group's systems?
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
