In xml.rs in GNOME librsvg before 2.46.2, a crafted SVG file with nested patterns can cause denial of service when passed to the library for processing. The attacker constructs pattern elements so that the number of final rendered objects grows exponentially.
Created chromium tracking bugs for this issue:
Affects: epel-all [bug 1797611]
Affects: fedora-all [bug 1797610]
Created firefox tracking bugs for this issue:
Affects: fedora-all [bug 1797613]
Created librsvg2 tracking bugs for this issue:
Affects: fedora-all [bug 1797609]
Created thunderbird tracking bugs for this issue:
Affects: fedora-all [bug 1797614]
Upstream commit: https://gitlab.gnome.org/GNOME/librsvg/commit/572f95f739529b865e2717664d6fefcef9493135
Reproducer available at:
Mozilla bug for this flaw:
This flaw is similar to billion laughs. A specially-crafted XML file can cause librsvg to consume excessive memory and result in denial of service. This flaw also affects browsers. Currently Mozilla and Google are working on updates for Firefox and Chromium browser respectively.
This flaw is triggered when untrusted XML files are parsed with applications compiled with librsvg2 library. Applications which do not parse untrusted XML files are not affected by this flaw.