Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2023-3824: Stack Buffer Overflow in PHP PHAR Directory Parsing

Published Aug 11, 2023 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS21.8%98th percentile
CISA KEVNoNot listed
In the wildReported3 exploitation records in Mallory
Vendors
Debian ProjectFedora ProjectPHP Group
IdentifiersCVE-2023-3824CWE-121

CVE-2023-3824 is a stack-based buffer overflow in PHP's phar_dir_read() function. Improper filename-length checking and NUL termination while reading specially crafted PHAR directory entries cause an out-of-bounds write and a subsequent buffer overread. Affected upstream releases include PHP 8.0.x before 8.0.30, 8.1.x before 8.1.22, and 8.2.x before 8.2.8. Processing a malicious archive can disclose uninitialized stack data and corrupt memory, potentially enabling arbitrary code execution. Proof-of-concept behavior demonstrates information disclosure and a buffer overwrite; code execution remains application-dependent and is not demonstrated by that proof of concept.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can expose uninitialized stack memory, corrupt process memory, and potentially crash the affected PHP process. Further exploitation may permit arbitrary code execution with the PHP process's privileges, compromising the confidentiality and integrity of data accessible to that process. Reliable code execution depends on the application and runtime environment and is not established by the demonstrated buffer overwrite alone.

Mitigation

If you can’t patch tonight, do this now.

Until patched, prevent applications from inspecting or enumerating untrusted PHAR archives, and restrict workflows that allow attacker-controlled archives to reach PHAR directory-reading operations. These measures reduce exposure to the vulnerable code path but are not a substitute for updating PHP; no formal upstream workaround is specified.

Remediation

Patch, then assume compromise.

Upgrade PHP to a currently supported release containing the fix. The first fixed releases in the affected upstream branches are PHP 8.0.30, 8.1.22, and 8.2.8. For vendor-maintained packages or products embedding PHP, install the applicable vendor security update, since backported fixes may retain older upstream version numbers. Echo php-7.2 packages have a specified fixed version of 7.2.34+e1 or later.

Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
PHP GroupPhpapplication
FAQ

Frequently asked questions

Is CVE-2023-3824 exploited in the wild?
Yes. As of Dec 2, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2023-3824?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2023-3824, the earliest disclosed Sep 23, 2025.
Is there a patch for CVE-2023-3824?
Upgrade PHP to a currently supported release containing the fix. The first fixed releases in the affected upstream branches are PHP 8.0.30, 8.1.22, and 8.2.8.
What products are affected by CVE-2023-3824?
PHP Group Php, Debian Project Debian Linux, and Fedora Project Fedora.
How severe is CVE-2023-3824?
CVE-2023-3824 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 21.8% (98th percentile) as of Dec 2, 2026.
Activity feed

Recent activity

12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 28, 2026CentOS Linux 8.4 [TuxCare] Security Update: php / php-bcmath /... | Tenable®A vulnerability listed in a TuxCare PHP security update for CentOS Linux 8.4 and identified as the source of the displayed CVSS scores. Its CVSS v3 vector indicates network exploitation without privileges or user interaction, with high confidentiality, integrity, and availability impacts. The excerpt does not describe its technical cause.Read more ↗tenable nessus pluginsNews · Nov 28, 2026CentOS Linux 8 [TuxCare] Security Update: php / php-bcmath / p... | Tenable®A critical vulnerability covered by a TuxCare security update for PHP packages on CentOS Linux 8. The listed CVSS vector indicates network exploitation without authentication or user interaction, with high confidentiality, integrity, and availability impacts. Exploits and a patch are available; the content does not describe the underlying flaw.Read more ↗tenable cloud security pluginsNews · Oct 25, 2026Echo: php-7.2: security update to 7.2.34+e1 | Tenable®A critical PHP stack buffer overflow in PHAR directory-entry processing that can potentially cause memory corruption or remote code execution. The advisory lists PHP 8.0 before 8.0.30, 8.1 before 8.1.22, and 8.2 before 8.2.8, and identifies an affected Echo php-7.2 package with an update available. The plugin reports a CVSS v3 base score of 9.8 and available exploits.Read more ↗chocapikkNews · Feb 7, 2025How I Got Hacked: A Warning about Malicious PoCsReferenced only as part of repository names in attacker infrastructure/IoCs; no vulnerability details are provided in the content.Read more ↗
+3 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.