CVE-2026-121444

svg-sanitizer 0.11.0 before 1.1.0 Algorithmic Complexity DoS via use Reference Graph

Published Nov 3, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
svg-sanitizer from 0.11.0 before 1.1.0 contains an algorithmic complexity denial of service vulnerability in hasInfiniteLoop() and countUse() of the use reference-graph analysis. Attackers can upload a small layered SVG with 15 levels of fanned-out use elements, forcing exponential path enumeration that pins PHP workers for hours.

Analysis

AI-generated

Technical impact

svg‑sanitizer versions from 0.11.0 through 1.0.x contain a flaw in the reference‑graph analysis code. The hasInfiniteLoop() and countUse() functions perform exponential path enumeration when confronted with SVG files that use a large number of nested "use" elements. An attacker can supply a small SVG containing 15 levels of fanned‑out use references, causing PHP workers to enumerate an exponential number of paths and become fully occupied for hours. The impact is a denial of service to the application, reflected in the CVSS score of 8.7 and the CWE‑400 identifier for unbounded resource consumption.

Affected Systems

The affected product is the darylldoyle svg‑sanitizer library, specifically all releases from 0.11.0 up to but not including 1.1.0. Based on the product’s PHP implementation, it is likely used in PHP‑based web applications that render SVG content, but there is no explicit mention of specific frameworks in the CVE data.

Risk and Exploitability

The vulnerability has a high severity rating of 8.7 and is not listed in CISA’s KEV catalog. EPSS data is unavailable, so the historical exploitation probability is unknown. The likely attack vector is through the upload or inclusion of malicious SVG files; the attacker only needs the ability to place the SVG in a location processed by the library, such as a web upload form. No additional privileges or network access beyond normal user interaction are required. If exploited, the PHP worker threads will become saturated, effectively denying service to legitimate users until the workers recover or are restarted.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade svg‑sanitizer to version 1.1.0 or later, which removes the vulnerable reference‑graph analysis logic.
  • If an upgrade is not immediately possible, restrict SVG uploads to a maximum depth of 15 or less and enforce stringent size and complexity limits on the SVG content before passing it to the library.
  • Configure PHP to limit worker thread counts, memory consumption, and execution time; monitor for excessive resource usage and automatically restart or terminate workers that become unresponsive during SVG processing.

Generated by OpenCVE AI on November 3, 2026 at 16:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Darylldoyle
Darylldoyle svg-sanitizer
Vendors & Products Darylldoyle
Darylldoyle svg-sanitizer
Type Values Removed Values Added
Description svg-sanitizer from 0.11.0 before 1.1.0 contains an algorithmic complexity denial of service vulnerability in hasInfiniteLoop() and countUse() of the use reference-graph analysis. Attackers can upload a small layered SVG with 15 levels of fanned-out use elements, forcing exponential path enumeration that pins PHP workers for hours.
Title svg-sanitizer 0.11.0 before 1.1.0 Algorithmic Complexity DoS via use Reference Graph
First Time appeared Drupal
Drupal svg Sanitizer
Weaknesses CWE-400
CPEs cpe:2.3:a:drupal:svg_sanitizer:*:*:*:*:*:*:*:*
Vendors & Products Drupal
Drupal svg Sanitizer
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 6:28 PM
Reserved
Nov 3, 2026, 12:32 PM
Status
Deferred
Published
Nov 3, 2026, 3:17 PM
Modified
Nov 3, 2026, 7:18 PM