CVE-2023-3824
Buffer overflow and overread in phar_dir_read()
At a glance Severity CRITICAL 9.4 EPSS EPSS 21.79 % · percentile 98 (2026-10-27) State PUBLISHED Published 2023-08-11 Updated 2025-02-13 Assigner php NVD status Modified
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.
Scores Version Score Vector Scored by CVSS 3.1 CRITICAL 9.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L php CVSS 3.1 CRITICAL 9.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L NVD · security@php.net (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD · nvd@nist.gov (Primary)
Weaknesses (CWE)
European references
CERT-FR advisories
Affected configurations (NVD CPE) cpe:2.3:a:php:php:*:*:*:*:*:*:*:* ≥ 8.0.0 < 8.0.30cpe:2.3:a:php:php:*:*:*:*:*:*:*:* ≥ 8.1.0 < 8.1.22cpe:2.3:a:php:php:*:*:*:*:*:*:*:* ≥ 8.2.0 < 8.2.9cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Affected products Product Versions PHP Group · PHP affected 8.0.* < 8.0.30 ; affected 8.1.* < 8.1.22 ; affected 8.2.* < 8.2.8
References
Sources