All reports
Medium

php: phar Buffer mismanagement

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2023-3824

Probability of exploitation in the next 30 days: 21.79%

FIRST EPSS · 2026-11-23

Description

In PHP version 8.0.* before 8.0.30,  8.1.* before 8.1.22, and 8.2.* before 8.2.8, when loading phar file, while reading PHAR directory entries, insufficient length checking may lead to a stack buffer overflow, leading potentially to memory corruption or RCE.

A flaw was found in PHP that can lead to a buffer overflow and a stack information leak due to improper bounds checking within the phar_dir_read() function. This issue may allow an attacker to initiate memory corruption by compelling the application to open a specially crafted .phar archive, allowing the attacker to corrupt memory or cause a denial of service condition.