Bug 533174 - (CVE-2009-3560) CVE-2009-3560 expat: buffer over-read and crash in big2_toUtf8() on XML with malformed UTF-8 sequences
CVE-2009-3560 expat: buffer over-read and crash in big2_toUtf8() on XML with ...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20091202,repor...
: Security
Depends On: 531706 531707 531708 531710 531711 556778 557829 557837 812253 982566
Blocks: 801654
  Show dependency treegraph
 
Reported: 2009-11-05 08:56 EST by Jan Lieskovsky
Modified: 2015-10-29 11:11 EDT (History)
14 users (show)

See Also:
Fixed In Version: expat 2.1.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-01-22 02:47:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Lieskovsky 2009-11-05 08:56:40 EST
The big2_toUtf8 function in lib/xmltok.c in libexpat in Expat 2.0.1 allows context-dependent attackers to cause a denial of service (application crash)
via an XML document with crafted UTF-8 sequences that trigger a buffer over-read, a different vulnerability than CVE-2009-2625 and CVE-2009-3720.
Comment 15 Jan Lieskovsky 2009-11-27 09:23:47 EST
Upstream patch (needs further testing):
http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmlparse.c?r1=1.164&r2=1.165
Comment 19 Fedora Update System 2009-12-03 08:58:27 EST
expat-2.0.1-8.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/expat-2.0.1-8.fc12
Comment 20 Fedora Update System 2009-12-03 09:01:25 EST
expat-2.0.1-8.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/expat-2.0.1-8.fc11
Comment 21 Fedora Update System 2009-12-03 09:02:08 EST
expat-2.0.1-8.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/expat-2.0.1-8.fc10
Comment 22 Fedora Update System 2009-12-04 18:57:05 EST
expat-2.0.1-8.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 23 Fedora Update System 2009-12-04 19:02:41 EST
expat-2.0.1-8.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 24 Fedora Update System 2009-12-04 19:05:58 EST
expat-2.0.1-8.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 25 errata-xmlrpc 2009-12-07 14:11:03 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 4
  Red Hat Enterprise Linux 3

Via RHSA-2009:1625 https://rhn.redhat.com/errata/RHSA-2009-1625.html
Comment 26 Josh Bressers 2010-01-11 11:13:47 EST
It seems this bug causes a regression:
https://bugzilla.novell.com/show_bug.cgi?id=566434

If this causes issues for us, the patch can be found here:
http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmlparse.c?view=log#rev1.165
Comment 27 lindahl 2010-01-11 20:42:29 EST
We have observed that this new library causes test failures for the CPAN module XML::Parser, so it'd be nice if you fixed it.
Comment 28 lindahl 2010-01-15 17:04:05 EST
Hello? In case my last comment wasn't clear: Yes, we have observed the regression; the tests for the CPAN module XML::Parser fail with the updated expat. Please fix the regression.
Comment 29 Joe Orton 2010-01-18 05:49:01 EST
Thanks for the report.  I've filed bug 556415 to track the regression.
Comment 41 Vincent Danen 2011-06-17 15:28:32 EDT
Fedora uses the system expat in in python-2.6.2-6 on F12; higher versions are not vulnerable.  With python3, Fedora uses the system expat as well.
Comment 42 errata-xmlrpc 2011-06-22 19:16:42 EDT
This issue has been addressed in following products:

  JBoss Enterprise Web Server 1.0

Via RHSA-2011:0896 https://rhn.redhat.com/errata/RHSA-2011-0896.html
Comment 43 Jan Lieskovsky 2013-07-09 06:06:21 EDT
Created compat-expat1 tracking bugs for this issue:

Affects: fedora-all [bug 982563]
Comment 46 Tomas Hoger 2014-07-21 17:44:08 EDT
(In reply to Jan Lieskovsky from comment #15)
> Upstream patch (needs further testing):
> http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmlparse.c?r1=1.164&r2=1.165

The final upstream patch:
http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmlparse.c?r1=1.164&r2=1.166

Upstream bug report:
http://sourceforge.net/p/expat/bugs/2894085/

First fixed upstream in version 2.1.0:
http://sourceforge.net/projects/expat/files/expat/2.1.0/
Comment 47 Tomas Hoger 2014-07-21 17:48:50 EDT
Note: This problem only affected applications that set Default Handler for the expat XML parser.

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