Description
librsvg before 2.40.12 allows context-dependent attackers to cause a denial of service (infinite loop, stack consumption, and application crash) via cyclic references in an SVG document.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | librsvg | 2.40.12-1 | — |
| Debian 13 | librsvg | 2.40.12-1 | — |
| Debian 12 | librsvg | 2.40.12-1 | — |
| Debian 8 | librsvg | 2.40.5-1+deb8u2 | DSA-3584-1 |
| Debian 7 | librsvg | 2.36.1-2+deb7u2 | DLA-477-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | librsvg | < 2.40.12 | 2.40.12 | GHSA-j984-q4qc-6qxf |
Advisories 2
- DLA-477-1 librsvg - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3584-1 librsvg - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- [oss-security] 20151221 CVE-2015-7557, CVE-2015-7558 librsvg2: Out-of-bounds heap read and stack exhaustion mailing-list
- https://git.gnome.org/browse/librsvg/commit/?id=a51919f7e1ca9c535390a746fbf6e28c8402dc61
- [oss-security] 20160430 Re: CVE requests: DoS in librsvg parsing SVGs with circular definitions mailing-list
- DSA-3584 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1268243