Skip to main content

PHP CVE-2026-7260

| EUVDEUVD-2026-51092 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-07-30 php
5.4
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft phar archive with circular symbolic links
  2. Delivery
    Deliver archive to target server filesystem
  3. Exploit
    Induce PHP script to parse attacker-supplied archive
  4. Install
    Trigger unbounded symlink recursion in phar handler
  5. C2
    Exhaust native C stack
  6. Execute
    Crash PHP worker process
  7. Impact
    Deny service to dependent application tier

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a PHP application actively parses a phar archive sourced from attacker-controlled input - for example, via a file upload endpoint that passes the uploaded path to PharData, phar_open(), or a phar:// stream wrapper, or via any code path that resolves a user-supplied filename against the phar extension. The CVSS local attack vector (AV:L) requires the malicious archive to be present on the server's local filesystem. Active user interaction (UI:A) is required: a PHP script or operator must initiate the parsing operation - passive delivery alone does not trigger the vulnerability. PHP deployments that enforce strict file-type allowlists before processing, that sandbox phar operations, or that architecturally never accept external phar input are not exposed. The flaw does not affect PHP processes that only parse phar archives they themselves generated from trusted sources.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:A/VA:H/SA:H) scores 5.4, positioning this as a moderate finding. The local attack vector (AV:L) is the primary limiting factor: the malicious phar must reach the server's local filesystem or be passed directly by a PHP script that accepts attacker-controlled file paths. Active user interaction (UI:A) is required - a PHP process must be induced to open and parse the archive. The exploitation likelihood supplemental metric is E:U (unlikely), there is no CISA KEV listing, and no confirmed public proof-of-concept was identified in the provided intelligence. These signals collectively indicate this is not an opportunistic internet-scale threat but rather a targeted denial-of-service risk against PHP applications that accept and process external phar input. The SA:H metric is a meaningful amplifier: a single crashed PHP-FPM worker can degrade the availability of the entire application tier if the process manager does not restart workers quickly. Deployments that never parse untrusted phar archives face no practical exposure. Overall, this is a real but lower-priority patching target unless the application explicitly handles user-supplied phar files.

Exploit ScenarioDerived

An attacker crafts a phar archive embedding two symbolic links that reference each other in a cycle, then submits it to a PHP web application that accepts file uploads and passes the path to a phar-parsing function such as a PharData constructor or a phar:// stream wrapper. When PHP resolves the symlinks during archive traversal, the recursion never terminates, exhausting the C stack and crashing the PHP-FPM worker - taking the application offline until the process manager restarts the worker. No public exploit code has been identified at the time of this analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Stack exhaustion in PHP's phar archive handler allows an attacker to crash the PHP process by supplying a crafted archive containing circular symbolic links, triggering unbounded recursion that depletes the native C stack. Affected versions span PHP 8.2.x before 8.2.33, 8.3.x before 8.3.33, 8.4.x before 8.4.24, and 8.5.x before 8.5.9 across all platforms. Exploitation requires a PHP process to actively parse the malicious archive (UI:A/AV:L); no public exploit has been identified and exploitation likelihood is rated unlikely (E:U in the provided CVSS 4.0 vector), making this a moderate-priority patch for most deployments - with heightened urgency for applications that process user-supplied phar archives.

RemediationAI

Upgrade to the patched releases - PHP 8.2.33, 8.3.33, 8.4.24, or 8.5.9 - as documented in the vendor advisory at https://github.com/php/php-src/security/advisories/GHSA-vc5h-9ppw-p5f3. If an immediate upgrade is not possible, the most targeted compensating control is to prevent untrusted phar archives from reaching the PHP parser: remove or disable the phar extension entirely (note: this may break Composer and other phar-packaged tooling, so test in staging first), or implement file-type validation at the application boundary to reject uploads whose content matches phar magic bytes (PK\x03\x04 or the phar stub header) before any PHP processing occurs. Restricting the phar.readonly INI directive limits phar creation but does not prevent parsing of a crafted archive, so it is not an effective mitigation on its own. Applications that accept no user-controlled file paths or uploads do not require compensating controls beyond scheduling the patch.

Affected VersionsENISA

PHP 8.2.* <8.2.33
PHP 8.4.* <8.4.24
PHP 8.3.* <8.3.33
PHP 8.5.* <8.5.9

Affected Packages

euvd php_8_2 fix: 8.2.33
euvd php_8_3 fix: 8.3.33
euvd php_8_4 fix: 8.4.24
euvd php_8_5 fix: 8.5.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PHP's phar (PHP Archive) extension packages PHP code and assets into a single portable file, analogous to Java JARs. The vulnerability is located in phar symlink resolution logic: when an archive contains symbolic links that form a cycle (link_a points to link_b, link_b points back to link_a), PHP's traversal routine recurses without a depth limit or cycle-detection guard. CWE-121 (Stack-based Buffer Overflow) classifies this as a stack consumption fault - each recursive call pushes a frame onto the native C stack until the operating system terminates the thread on stack overflow, crashing the PHP worker process. The affected CPE is cpe:2.3:a:php_group:php:*:*:*:*:*:*:*:* across the 8.2, 8.3, 8.4, and 8.5 release trains. The CVSS 4.0 subsequent-system availability metric (SA:H) reflects that a crashed PHP worker can propagate unavailability to a dependent web server or application container.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (php) PRIMARY 5.4 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H/E:U
vuln.today AI 6.3 MEDIUM

AV:L because phar must reach local filesystem; UI:R since PHP must actively parse it; S:C because SA:H in source vector signals cascade to dependent web server.

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Jul 30, 2026 - 12:03 EUVD
CVE Published
Jul 30, 2026 - 11:22 cve.org
MEDIUM 5.4

DescriptionCVE.org

Circular symbolic links in phar archives could lead to unbounded recursion, exhausting the C stack and crashing the PHP process, in PHP versions from 8.2.* before 8.2.33, from 8.3.* before 8.3.33, from 8.4.* before 8.4.24, and from 8.5.* before 8.5.9.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
PHP powers the vast majority of server-side web deployments globally
Social Media
5
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy