CVE-2023-3824

Buffer overflow and overread in phar_dir_read()

State
Published
Severity
9.4 Critical
Published
Aug 11, 2023
Updated
Feb 13, 2025
Reserved
Jul 21, 2023

Read the record on cve.org

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

CVSSScoreVectorSource
3.19.4 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Lphp

Weaknesses

  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

Affected Products

ProductVersions
PHPPHP Group
  • 8.0.* to before 8.0.30Affected
  • 8.1.* to before 8.1.22Affected
  • 8.2.* to before 8.2.8Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.