CVE-2026-117540
svg-sanitizer before 1.1.0 Quadratic CPU-Exhaustion DoS via PHP-Tag Stripping Loop
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.1.0
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
The svg-sanitizer PHP library, which is used to clean SVG files before they are processed or displayed, is affected. A remote, unauthenticated attacker can submit a specially crafted SVG that makes the sanitizer consume excessive CPU for minutes, potentially making the application unresponsive.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
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.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- darylldoyle svg-sanitizer
From 0.5.3 · fixed in 1.1.0