Bug 26313 - librsvg new security issue CVE-2019-20446
Summary: librsvg new security issue CVE-2019-20446
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-03-06 19:53 CET by David Walser
Modified: 2020-04-05 19:08 CEST (History)
7 users (show)

See Also:
Source RPM: librsvg-2.45.5-3.mga7.src.rpm
CVE: CVE-2019-20446
Status comment:


Attachments

Description David Walser 2020-03-06 19:53:58 CET
SUSE has issued an advisory today (March 6):
http://lists.suse.com/pipermail/sle-security-updates/2020-March/006583.html
Comment 1 Lewis Smith 2020-03-06 21:19:00 CET
No registered nor evident maintainer, so assigning globally.

Assignee: bugsquad => pkg-bugs

Morgan Leijström 2020-03-12 12:27:26 CET

CC: (none) => fri

Comment 2 David Walser 2020-03-19 14:46:31 CET
openSUSE has issued an advisory for this on March 15:
https://lists.opensuse.org/opensuse-updates/2020-03/msg00080.html

Status comment: (none) => Fixed upstream in 2.46.2, patch available from openSUSE

Comment 3 Nicolas Salguero 2020-04-03 16:18:55 CEST
Suggested advisory:
========================

The updated packages fix a security vulnerability:

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. (CVE-2019-20446)

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-20446
http://lists.suse.com/pipermail/sle-security-updates/2020-March/006583.html
https://lists.opensuse.org/opensuse-updates/2020-03/msg00080.html
========================

Updated packages in core/updates_testing:
========================
librsvg-2.45.5-3.1.mga7
lib(64)rsvg2_2-2.45.5-3.1.mga7
lib(64)rsvg2-devel-2.45.5-3.1.mga7
lib(64)rsvg-gir2.0-2.45.5-3.1.mga7

from SRPMS:
librsvg-2.45.5-3.1.mga7.src.rpm

CC: (none) => nicolas.salguero
Status comment: Fixed upstream in 2.46.2, patch available from openSUSE => (none)
CVE: (none) => CVE-2019-20446
Status: NEW => ASSIGNED
Assignee: pkg-bugs => qa-bugs

Comment 4 Herman Viaene 2020-04-04 14:47:57 CEST
MGA7-64 Plasma on Lenovo B50
No installation issues.
Loaded svg image from https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/
Ref bug 23206 for testing.
$ rsvg-view-3 tiger.svg 
opens in small window, resizing it shows nice image.
Right click on the image and save as png. Resulting png displays OK in gwenview.

$ rsvg-convert -f pdf -h 720 -w 512 -b '#ebafdc' tiger.svg -o $ rsvg-convert -f pdf -h 720 -w 720 -b '#ebafdc' tiger.svg -o tiger.pdf
Gives pdf file, looks good in Okular.

Whiteboard: (none) => MGA7-64-OK
CC: (none) => herman.viaene

Comment 5 Thomas Andrews 2020-04-04 17:29:15 CEST
Validating. Advisory in Comment 3.

CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update

Comment 6 Len Lawrence 2020-04-05 01:52:38 CEST
Adding the PoC test for what it is worth.

CVE-2019-20446
https://gitlab.gnome.org/GNOME/librsvg/issues/515
sample 1:
$ rsvg-convert -o foo.png nested-pattern-crash.svg
Hangs forever.
sample 2:
$ rsvg-convert -o poc.png deep.svg
Error reading SVG:XML parse error: Error domain 1 code 5 on line 5000023 column 1 of data: Extra content at the end of the document
<returns after several seconds>

After update:
$ rsvg-convert -o foo.png nested-pattern-crash.svg
Could not render file nested-pattern-crash.svg
<returned immediately>
$ rsvg-convert -o poc.png deep.svg
Error reading SVG:XML parse error: Error domain 1 code 5 on line 5000023 column 1 of data: Extra content at the end of the document
<returned almost immediately>

Good result.

CC: (none) => tarazed25

Thomas Backlund 2020-04-05 18:36:18 CEST

CC: (none) => tmb
Keywords: (none) => advisory

Comment 7 Mageia Robot 2020-04-05 19:08:18 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2020-0159.html

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.