{"id":"CVE-2026-117540","summary":"svg-sanitizer before 1.1.0 Quadratic CPU-Exhaustion DoS via PHP-Tag Stripping Loop","details":"svg-sanitizer from 0.5.3 before 1.1.0 contains a denial of service vulnerability in Sanitizer::sanitize() that repeatedly rescans the whole input while stripping PHP tags. Unauthenticated attackers can upload SVGs with many overlapping PHP tag openers and closers, forcing quadratic preg_replace passes that exhaust worker CPU for minutes.","aliases":["GHSA-2v7c-jx29-jprp"],"modified":"2026-11-04T02:30:19.213183514Z","published":"2026-10-27T10:59:34.119Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-407"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117540.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117540.json"},{"type":"ADVISORY","url":"https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-2v7c-jx29-jprp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-117540"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/svg-sanitizer-before-1.1.0-quadratic-cpu-exhaustion-dos-via-php-tag-stripping-loop"},{"type":"FIX","url":"https://github.com/darylldoyle/svg-sanitizer/commit/9ba9001493f5da737759303f13bd965ebdaa778c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/darylldoyle/svg-sanitizer","events":[{"introduced":"1907fff05f8931e1bc0c8ba27e936b46d51e29b0"},{"fixed":"9ba9001493f5da737759303f13bd965ebdaa778c"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0.5.3"},{"fixed":"1.1.0"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"9ba9001493f5da737759303f13bd965ebdaa778c"}],"source":"REFERENCES_COMMIT"},{"range":[{"introduced":"0.5.3"},{"fixed":"1.1.0"}],"source":"DESCRIPTION"}]}}],"versions":["1.0.0","0.22.0","0.21.0","0.20.0","0.19.0","0.18.0","0.17.0","0.16.0","0.15.4","0.15.3","0.15.2","0.15.1","0.15.0","0.14.1","0.14.0","0.13.3","0.13.2","0.10.0","0.9.2","0.9.1","0.9.0","0.8.2","0.8.1","0.8.0","0.7.2","0.7.1","0.7.0","0.6.0","0.5.3.1","0.5.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-117540.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}