Description
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.
Published: 2026-07-30
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Circular symbolic links in PHP archive files can cause an unbounded recursion that exhausts the C stack and crashes the PHP process. The flaw is rooted in the handling of PHAR archives and results in a denial‑of‑service condition that can be triggered when a malicious PHAR file is processed. The vulnerability is classified as CWE‑121, a stack buffer overflow weakness, and also involves improper validation of symbolic links (CWE‑606).

Affected Systems

The vulnerability affects PHP versions 8.2.*, 8.3.*, 8.4.*, and 8.5.* that are prior to 8.2.33, 8.3.33, 8.4.24, and 8.5.9 respectively. This includes all distributions and builds of PHP that ship these versions.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity, and the EPSS score of less than 1% shows a very low likelihood of exploitation in the wild. It is not listed in the CISA KEV catalog. The attack vector is not explicitly detailed in the advisory; it is inferred that the flaw can be exploited when PHP processes a malicious PHAR archive, which may be delivered locally or remotely depending on application usage. Because the weaknesses involve a stack buffer overflow (CWE‑121) and improper validation of symbolic links (CWE‑606) that lead only to a crash rather than arbitrary code execution, the risk is limited to denial‑of‑service under the described conditions.

Generated by OpenCVE AI on August 7, 2026 at 02:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a PHP version that includes the fix (8.2.33 or later, 8.3.33 or later, 8.4.24 or later, 8.5.9 or later).
  • Prevent untrusted applications from processing PHAR archives by disabling PHAR handling or restricting the PHAR handler to trusted sources only.
  • Implement application‑level checks on PHAR files to detect and reject archives containing circular symbolic links before extraction.

Generated by OpenCVE AI on August 7, 2026 at 02:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4732-1 php8.2 security update
Debian DLA Debian DLA DLA-4733-1 php7.4 security update
Debian DSA Debian DSA DSA-6406-1 php8.4 security update
History

Fri, 07 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-606
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Thu, 30 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 30 Jul 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Php Group
Php Group php
Vendors & Products Php Group
Php Group php

Thu, 30 Jul 2026 11:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Stack overflow in phar with circular symlinks
Weaknesses CWE-121
References
Metrics cvssV4_0

{'score': 5.4, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: php

Published:

Updated: 2026-07-30T12:15:22.862Z

Reserved: 2026-04-28T05:07:45.654Z

Link: CVE-2026-7260

cve-icon Vulnrichment

Updated: 2026-07-30T12:15:17.348Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-30T12:19:04.300

Modified: 2026-08-05T19:39:54.043

Link: CVE-2026-7260

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-30T11:22:53Z

Links: CVE-2026-7260 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T02:15:04Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

  • CWE-606

    Unchecked Input for Loop Condition