CVE-2013-0338: Buffer Overflow

Published Feb 18, 2013
·
Updated

A denial of service flaw was found in the way libxml2, a library providing support to read, modify and write XML and HTML files, performed string substitutions when entity values for entity references replacement (--noent option) was requested / enabled during the XML file parsing. A remote attacker could provide a specially-crafted XML file that, when processed would lead to excessive CPU consumption (denial of service).

Other sources

libxml2 2.9.0 and earlier allows context-dependent attackers to cause a denial of service (CPU and memory consumption) via an XML file containing an entity declaration with long replacement text and many references to this entity, aka "internal entity expansion" with linear complexity.

MITRE

Affected Software

134 affected components
Xmlsoft Libxml2<=2.9.0
Xmlsoft Libxml2=1.7.0
Xmlsoft Libxml2=1.7.1
Xmlsoft Libxml2=1.7.2
Xmlsoft Libxml2=1.7.3
Xmlsoft Libxml2=1.7.4
Xmlsoft Libxml2=1.8.0
Xmlsoft Libxml2=1.8.1
Xmlsoft Libxml2=1.8.2
Xmlsoft Libxml2=1.8.3
Xmlsoft Libxml2=1.8.4
Xmlsoft Libxml2=1.8.5
Xmlsoft Libxml2=1.8.6
Xmlsoft Libxml2=1.8.7
Xmlsoft Libxml2=1.8.9
Xmlsoft Libxml2=1.8.10
Xmlsoft Libxml2=1.8.13
Xmlsoft Libxml2=1.8.14
Xmlsoft Libxml2=1.8.16
Xmlsoft Libxml2=2.0.0
Xmlsoft Libxml2=2.1.0
Xmlsoft Libxml2=2.1.1
Xmlsoft Libxml2=2.2.0
Xmlsoft Libxml2=2.2.0-beta
Xmlsoft Libxml2=2.2.1
Xmlsoft Libxml2=2.2.2
Xmlsoft Libxml2=2.2.3
Xmlsoft Libxml2=2.2.4
Xmlsoft Libxml2=2.2.5
Xmlsoft Libxml2=2.2.6
Xmlsoft Libxml2=2.2.7
Xmlsoft Libxml2=2.2.8
Xmlsoft Libxml2=2.2.9
Xmlsoft Libxml2=2.2.10
Xmlsoft Libxml2=2.2.11
Xmlsoft Libxml2=2.3.0
Xmlsoft Libxml2=2.3.1
Xmlsoft Libxml2=2.3.2
Xmlsoft Libxml2=2.3.3
Xmlsoft Libxml2=2.3.4
Xmlsoft Libxml2=2.3.5
Xmlsoft Libxml2=2.3.6
Xmlsoft Libxml2=2.3.7
Xmlsoft Libxml2=2.3.8
Xmlsoft Libxml2=2.3.9
Xmlsoft Libxml2=2.3.10
Xmlsoft Libxml2=2.3.11
Xmlsoft Libxml2=2.3.12
Xmlsoft Libxml2=2.3.13
Xmlsoft Libxml2=2.3.14
Xmlsoft Libxml2=2.4.1
Xmlsoft Libxml2=2.4.2
Xmlsoft Libxml2=2.4.3
Xmlsoft Libxml2=2.4.4
Xmlsoft Libxml2=2.4.5
Xmlsoft Libxml2=2.4.6
Xmlsoft Libxml2=2.4.7
Xmlsoft Libxml2=2.4.8
Xmlsoft Libxml2=2.4.9
Xmlsoft Libxml2=2.4.10
Xmlsoft Libxml2=2.4.11
Xmlsoft Libxml2=2.4.12
Xmlsoft Libxml2=2.4.13
Xmlsoft Libxml2=2.4.14
Xmlsoft Libxml2=2.4.15
Xmlsoft Libxml2=2.4.16
Xmlsoft Libxml2=2.4.17
Xmlsoft Libxml2=2.4.18
Xmlsoft Libxml2=2.4.19
Xmlsoft Libxml2=2.4.20
Xmlsoft Libxml2=2.4.21
Xmlsoft Libxml2=2.4.22
Xmlsoft Libxml2=2.4.23
Xmlsoft Libxml2=2.4.24
Xmlsoft Libxml2=2.4.25
Xmlsoft Libxml2=2.4.26
Xmlsoft Libxml2=2.4.27
Xmlsoft Libxml2=2.4.28
Xmlsoft Libxml2=2.4.29
Xmlsoft Libxml2=2.4.30
Xmlsoft Libxml2=2.5.0
Xmlsoft Libxml2=2.5.4
Xmlsoft Libxml2=2.5.7
Xmlsoft Libxml2=2.5.8
Xmlsoft Libxml2=2.5.10
Xmlsoft Libxml2=2.5.11
Xmlsoft Libxml2=2.6.0
Xmlsoft Libxml2=2.6.1
Xmlsoft Libxml2=2.6.2
Xmlsoft Libxml2=2.6.3
Xmlsoft Libxml2=2.6.4
Xmlsoft Libxml2=2.6.5
Xmlsoft Libxml2=2.6.6
Xmlsoft Libxml2=2.6.7
Xmlsoft Libxml2=2.6.8
Xmlsoft Libxml2=2.6.9
Xmlsoft Libxml2=2.6.11
Xmlsoft Libxml2=2.6.12
Xmlsoft Libxml2=2.6.13
Xmlsoft Libxml2=2.6.14
Xmlsoft Libxml2=2.6.16
Xmlsoft Libxml2=2.6.17
Xmlsoft Libxml2=2.6.18
Xmlsoft Libxml2=2.6.20
Xmlsoft Libxml2=2.6.21
Xmlsoft Libxml2=2.6.22
Xmlsoft Libxml2=2.6.23
Xmlsoft Libxml2=2.6.24
Xmlsoft Libxml2=2.6.25
Xmlsoft Libxml2=2.6.26
Xmlsoft Libxml2=2.6.27
Xmlsoft Libxml2=2.6.28
Xmlsoft Libxml2=2.6.29
Xmlsoft Libxml2=2.6.30
Xmlsoft Libxml2=2.6.31
Xmlsoft Libxml2=2.6.32
Xmlsoft Libxml2=2.7.0
Xmlsoft Libxml2=2.7.1
Xmlsoft Libxml2=2.7.2
Xmlsoft Libxml2=2.7.3
Xmlsoft Libxml2=2.7.4
Xmlsoft Libxml2=2.7.5
Xmlsoft Libxml2=2.7.6
Xmlsoft Libxml2=2.7.7
Xmlsoft Libxml2=2.7.8
Xmlsoft Libxml2=2.9.0-rc1
Canonical Ubuntu Linux=8.04
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=11.10
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=12.10
openSUSE openSUSE=12.1
openSUSE openSUSE=12.2
openSUSE openSUSE=12.3

Event History

Feb 18, 2013
Data Sourced
03:40 PM
DescriptionSeverityAffected Software
Apr 25, 2013
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2013-0338?

CVE-2013-0338 is considered a high severity vulnerability that can lead to denial of service attacks.

2

How do I fix CVE-2013-0338?

To mitigate CVE-2013-0338, update libxml2 to version 2.9.1 or later, where the vulnerability is addressed.

3

What systems are affected by CVE-2013-0338?

CVE-2013-0338 affects versions of libxml2 up to 2.9.0 and specific earlier versions, including 1.7.x to 1.8.x.

4

Can CVE-2013-0338 be exploited remotely?

Yes, CVE-2013-0338 can be exploited remotely through crafted XML files.

5

What types of attacks can CVE-2013-0338 enable?

CVE-2013-0338 can enable denial of service attacks, causing the application using libxml2 to crash.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203