Buffer Overflow in PHP

Patch this weekFull system takeover over the network, no login needed.
9.8CRITICAL

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

๐Ÿฅ‡ Trended No. 1๐Ÿ“ˆ Trended๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC๐ŸŸฃ EPSS 21%๐Ÿ“ฐ News Worthy

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:

8.0.308.1.228.2.8
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

  1. Memory Corruption: An attacker can manipulate the stack memory, potentially causing application crashes or unpredictable behavior.

  2. 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.

favicon imageThe Stack

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?

favicon imageInformation Security Newspaper

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

Request Smuggling in PHP-FPM

CVE-2026-129289
PHP GroupPHP๐Ÿ‘พ9.2CRITICAL

Use-After-Free Vulnerability in PHP Affects Multiple Versions and Releases

CVE-2026-129496
PHP GroupPHP๐Ÿ˜„๐Ÿ‘พ9.2CRITICAL

Remote Code Execution Vulnerability in PHP Session Management

CVE-2026-126714
PHP GroupPHP๐Ÿ”ฅ๐Ÿ˜„๐Ÿ‘พ9.2CRITICAL
View more PHP Group vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction

EPSS Score

21% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Credit

Niels Dossche
.