Bug 5459

Summary: raptor new security issue CVE-2012-0037
Product: Mageia Reporter: David Walser <luigiwalser>
Component: SecurityAssignee: QA Team <qa-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: balcaen.john, cazzaniga.sandro, davidwhodgins, fundawang, sysadmin-bugs, tmb
Version: 1Keywords: validated_update
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: raptor-1.4.21-2.mga1.src.rpm CVE:
Status comment:

Description David Walser 2012-04-18 12:31:32 CEST
Debian has issued this advisory on March 22:
http://www.debian.org/security/2012/dsa-2438

According to RedHat, raptor2 is also vulnerable (it's unclear which versions).

Cauldron (for at least raptor) is also vulnerable.
Comment 1 David Walser 2012-04-18 12:32:01 CEST
RedHat reference:
https://bugzilla.redhat.com/show_bug.cgi?id=791296
David Walser 2012-04-18 12:32:35 CEST

CC: (none) => fundawang

David Walser 2012-04-18 12:32:51 CEST

CC: (none) => balcaen.john

David Walser 2012-04-18 12:33:00 CEST

CC: (none) => cazzaniga.sandro

David Walser 2012-04-18 12:33:15 CEST

Blocks: (none) => 5046

Comment 2 David Walser 2012-04-20 15:46:35 CEST
RedHat security advisory from March 22:
https://rhn.redhat.com/errata/RHSA-2012-0410.html
Comment 3 David Walser 2012-04-20 17:21:50 CEST
raptor2 (in Cauldron) is not vulnerable.

I just added the patch to the raptor package in Cauldron.
David Walser 2012-04-20 17:22:19 CEST

Blocks: 5046 => (none)

Comment 4 David Walser 2012-04-20 17:46:00 CEST
Patched package uploaded for Mageia 1.

Advisory:
========================

Updated raptor packages fix security vulnerability:

An XML External Entity expansion flaw was found in the way Raptor
processed RDF files. If an application linked against Raptor were to
open a specially-crafted RDF file, it could possibly allow a remote
attacker to obtain a copy of an arbitrary local file that the user
running the application had access to. A bug in the way Raptor handled
external entities could cause that application to crash or, possibly,
execute arbitrary code with the privileges of the user running the
application (CVE-2012-0037).

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0037
http://www.debian.org/security/2012/dsa-2438
https://rhn.redhat.com/errata/RHSA-2012-0410.html
========================

Updated packages in core/updates_testing:
========================
raptor-1.4.21-2.1.mga1
libraptor1-1.4.21-2.1.mga1
libraptor-devel-1.4.21-2.1.mga1

from raptor-1.4.21-2.1.mga1.src.rpm
David Walser 2012-04-20 18:25:14 CEST

Assignee: bugsquad => qa-bugs

Comment 5 Dave Hodgins 2012-04-20 23:28:05 CEST
Testing complete on i586 for the srpm
raptor-1.4.21-2.1.mga1.src.rpm

I don't see a poc, so just tessting the rapper command.

$ rapper -o ntriples http://planetrdf.com/guide/rss.rdf>rapper.txt
rapper: Parsing URI http://planetrdf.com/guide/rss.rdf with parser rdfxml
rapper: Serializing with serializer ntriples
rapper: Parsing returned 91 triples

The rapper.txt file has lines with three columns.

CC: (none) => davidwhodgins

Comment 6 claire robinson 2012-04-21 10:07:31 CEST
Testing complete x86_64 same procedure. Output looks the same after update.

Validating

Could sysadmin please push from core/updates_testing to core/updates

See comment 4 for SRPM & Advisory

Thanks!

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

claire robinson 2012-04-21 10:09:14 CEST

Hardware: i586 => All

Comment 7 David Walser 2012-04-21 17:08:39 CEST
Mandriva just issued an advisory for this this morning:
http://www.mandriva.com/en/support/security/advisories/?dis=2010.1&name=MDVSA-2012:061

Which unfortunately gave theirs a newer release tag than ours.  I rebuilt it to correct this, so the SRPM is now raptor-1.4.21-5.1.mga1.  The release tag was the only change, and the previous one was just built yesterday, so this should still be OK to be validated.

QA, is this still OK to go?

Here's an updated advisory.

Advisory:
========================

Updated raptor packages fix security vulnerability:

An XML External Entity expansion flaw was found in the way Raptor
processed RDF files. If an application linked against Raptor were to
open a specially-crafted RDF file, it could possibly allow a remote
attacker to obtain a copy of an arbitrary local file that the user
running the application had access to. A bug in the way Raptor handled
external entities could cause that application to crash or, possibly,
execute arbitrary code with the privileges of the user running the
application (CVE-2012-0037).

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0037
http://www.debian.org/security/2012/dsa-2438
https://rhn.redhat.com/errata/RHSA-2012-0410.html
========================

Updated packages in core/updates_testing:
========================
raptor-1.4.21-5.1.mga1
libraptor1-1.4.21-5.1.mga1
libraptor-devel-1.4.21-5.1.mga1

from raptor-1.4.21-5.1.mga1.src.rpm
Comment 9 Dave Hodgins 2012-04-21 19:58:38 CEST
Testing complete.

Could someone from the sysadmin team push the srpm
raptor-1.4.21-5.1.mga1.src.rpm
from Core Updates Testing to Core Updates

Advisory:
========================

Updated raptor packages fix security vulnerability:

An XML External Entity expansion flaw was found in the way Raptor
processed RDF files. If an application linked against Raptor were to
open a specially-crafted RDF file, it could possibly allow a remote
attacker to obtain a copy of an arbitrary local file that the user
running the application had access to. A bug in the way Raptor handled
external entities could cause that application to crash or, possibly,
execute arbitrary code with the privileges of the user running the
application (CVE-2012-0037).

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0037
http://www.debian.org/security/2012/dsa-2438
https://rhn.redhat.com/errata/RHSA-2012-0410.html

https://bugs.mageia.org/show_bug.cgi?id=5459
Comment 10 Thomas Backlund 2012-04-22 19:29:29 CEST
Update pushed

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED