Vendors › PHP

CVE-2026-7260

Medium (5.5) EPSS 0.1% PHP · Phar

Stack overflow in phar with circular symlinks

phar_get_link_source() in ext/phar/util.c recursively follows symbolic links in phar archives without any depth limit or cycle detection. A crafted tar-based phar archive containing circular symlinks causes unbounded recursion, exhausting the C stack and crashing the PHP process.

Published2026-07-30
Updated2026-10-06
AffectedPHP versions < 8.2.33; PHP versions < 8.3.33; PHP versions < 8.4.24; PHP versions < 8.5.9
FixUpgrade to 8.2.33, 8.3.33, 8.4.24, 8.5.9 (first fixed release per supported branch).
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-vc5h-9ppw-p5f3

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-7260CWE-121OverflowCode ExecutionNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.