CVE-2023-3824

published 11 Aug 2023 · updated 14 Nov 2026

Buffer overflow and overread in phar_dir_read()

9.9CriticalCVSS 9.4EPSS 22%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 22%. Fixed in PHP 8.0.30, PHP 8.1.22 and PHP 8.2.8.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=8.0.* <8.0.30, >=8.1.* <8.1.22, >=8.2.* <8.2.88.0.30, 8.1.22, 8.2.8

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-3824 severity on Zeptric[![CVE-2023-3824](https://zeptric.io/badge/cve/CVE-2023-3824.svg)](https://zeptric.io/cve/CVE-2023-3824)