CVE-2026-137952
7.5HighPublished Nov 27, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- High impact on availability
- Weakness
- CWE-674
What an attacker gets
Remote attackers can crash your application by sending crafted SVG files. This triggers infinite recursion during image rendering, causing a denial of service.
Root cause
The SvgRenderer.renderNode function lacks recursion limits or cycle detection when processing internal image href references.
Affected versions
svglib before 2.5.0
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fix & remediation
Upgrade to svglib 2.5.0 or later. If you cannot update, implement strict validation to reject SVG files containing nested or self-referencing image tags before passing them to svg2rlg().
$ pip install --upgrade svglibAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
svglib before 2.5.0 contains a denial of service vulnerability in SvgRenderer.renderNode() that recursively renders internal <image> href fragment references without expansion limits or cycle detection. Attackers can supply crafted SVGs to svg2rlg() with nested groups referencing each other twice or self-referencing images to cause exponential resource consumption or RecursionError crashes.
References
- https://github.com/deeplook/svglib/blob/f99f799e6ed5841e3a405d0536a0a79ed991331c/src/svglib/svglib.py#L1427-L1440
- https://github.com/deeplook/svglib/commit/be3c218c35845acb5ad88cca6352a85b0eaad00e
- https://github.com/deeplook/svglib/releases/tag/v2.5.0
- https://github.com/deeplook/svglib/security/advisories/GHSA-cmj4-5g24-pp37
- https://www.vulncheck.com/advisories/svglib-before-2.5.0-denial-of-service-via-recursive-image-fragment-references
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1322757.5HighRemote attackers can cause a denial of service by crashing the application via CPU and memory exhaustion. This requires the application to process a maliciously crafted SVG file.
- CVE-2026-1383468.7HighAuthenticated attackers with local workstation access can read sensitive files and print jobs from other workstations in the same organization. This requires specific knowledge of the target environment and internal network access.
- CVE-2026-1382027.3HighRemote attackers can bypass authentication and forge tokens by using the hard-coded JWT signing key. No authentication is required to exploit this vulnerability.
- CVE-2026-1382019.9CriticalRemote attackers can execute arbitrary OS commands as root. This requires low-privileged network access to the device.
- CVE-2026-1382007.3HighRemote unauthenticated attackers can execute arbitrary code on the router via the hedwig.cgi interface. This requires network access to the device's web management interface.
- CVE-2026-1383457.1HighLocal low-privileged users can read or modify sensitive print jobs and configuration data. This occurs on multi-user systems where the client was installed using specific command-line flags.