CVE Vulnerabilities

CVE-2013-2877

Improper Restriction of Operations within the Bounds of a Memory Buffer

Published: Jul 10, 2013 | Modified: Oct 09, 2018
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
4.3 LOW
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V3
Ubuntu

parser.c in libxml2 before 2.9.0, as used in Google Chrome before 28.0.1500.71 and other products, allows remote attackers to cause a denial of service (out-of-bounds read) via a document that ends abruptly, related to the lack of certain checks for the XML_PARSER_EOF state.

Weakness

The software performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.

Affected Software

Name Vendor Start Version End Version
Chrome Google 28.0.1500.0 28.0.1500.0
Chrome Google 28.0.1500.2 28.0.1500.2
Chrome Google 28.0.1500.3 28.0.1500.3
Chrome Google 28.0.1500.4 28.0.1500.4
Chrome Google 28.0.1500.5 28.0.1500.5
Chrome Google 28.0.1500.6 28.0.1500.6
Chrome Google 28.0.1500.8 28.0.1500.8
Chrome Google 28.0.1500.9 28.0.1500.9
Chrome Google 28.0.1500.10 28.0.1500.10
Chrome Google 28.0.1500.11 28.0.1500.11
Chrome Google 28.0.1500.12 28.0.1500.12
Chrome Google 28.0.1500.13 28.0.1500.13
Chrome Google 28.0.1500.14 28.0.1500.14
Chrome Google 28.0.1500.15 28.0.1500.15
Chrome Google 28.0.1500.16 28.0.1500.16
Chrome Google 28.0.1500.17 28.0.1500.17
Chrome Google 28.0.1500.18 28.0.1500.18
Chrome Google 28.0.1500.19 28.0.1500.19
Chrome Google 28.0.1500.20 28.0.1500.20
Chrome Google 28.0.1500.21 28.0.1500.21
Chrome Google 28.0.1500.22 28.0.1500.22
Chrome Google 28.0.1500.23 28.0.1500.23
Chrome Google 28.0.1500.24 28.0.1500.24
Chrome Google 28.0.1500.25 28.0.1500.25
Chrome Google 28.0.1500.26 28.0.1500.26
Chrome Google 28.0.1500.27 28.0.1500.27
Chrome Google 28.0.1500.28 28.0.1500.28
Chrome Google 28.0.1500.29 28.0.1500.29
Chrome Google 28.0.1500.31 28.0.1500.31
Chrome Google 28.0.1500.32 28.0.1500.32
Chrome Google 28.0.1500.33 28.0.1500.33
Chrome Google 28.0.1500.34 28.0.1500.34
Chrome Google 28.0.1500.35 28.0.1500.35
Chrome Google 28.0.1500.36 28.0.1500.36
Chrome Google 28.0.1500.37 28.0.1500.37
Chrome Google 28.0.1500.38 28.0.1500.38
Chrome Google 28.0.1500.39 28.0.1500.39
Chrome Google 28.0.1500.40 28.0.1500.40
Chrome Google 28.0.1500.41 28.0.1500.41
Chrome Google 28.0.1500.42 28.0.1500.42
Chrome Google 28.0.1500.43 28.0.1500.43
Chrome Google 28.0.1500.44 28.0.1500.44
Chrome Google 28.0.1500.45 28.0.1500.45
Chrome Google 28.0.1500.46 28.0.1500.46
Chrome Google 28.0.1500.47 28.0.1500.47
Chrome Google 28.0.1500.48 28.0.1500.48
Chrome Google 28.0.1500.49 28.0.1500.49
Chrome Google 28.0.1500.50 28.0.1500.50
Chrome Google 28.0.1500.51 28.0.1500.51
Chrome Google 28.0.1500.52 28.0.1500.52
Chrome Google 28.0.1500.53 28.0.1500.53
Chrome Google 28.0.1500.54 28.0.1500.54
Chrome Google 28.0.1500.56 28.0.1500.56
Chrome Google 28.0.1500.58 28.0.1500.58
Chrome Google 28.0.1500.59 28.0.1500.59
Chrome Google 28.0.1500.60 28.0.1500.60
Chrome Google 28.0.1500.61 28.0.1500.61
Chrome Google 28.0.1500.62 28.0.1500.62
Chrome Google 28.0.1500.63 28.0.1500.63
Chrome Google 28.0.1500.64 28.0.1500.64
Chrome Google 28.0.1500.66 28.0.1500.66
Chrome Google 28.0.1500.68 28.0.1500.68
Chrome Google * 28.0.1500.70
Libxml2 Xmlsoft 1.7.0 1.7.0
Libxml2 Xmlsoft 1.7.1 1.7.1
Libxml2 Xmlsoft 1.7.2 1.7.2
Libxml2 Xmlsoft 1.7.3 1.7.3
Libx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 2.3.9 2.3.9
Libxml2 Xmlsoft 2.3.10 2.3.10
Libxml2 Xmlsoft 2.3.11 2.3.11
Libxml2 Xmlsoft 2.3.12 2.3.12
Libxml2 Xmlsoft 2.3.13 2.3.13
Libxml2 Xmlsoft 2.3.14 2.3.14
Libxml2 Xmlsoft 2.4.1 2.4.1
Libxml2 Xmlsoft 2.4.2 2.4.2
Libxml2 Xmlsoft 2.4.3 2.4.3
Libxml2 Xmlsoft 2.4.4 2.4.4
Libxml2 Xmlsoft 2.4.5 2.4.5
Libxml2 Xmlsoft 2.4.6 2.4.6
Libxml2 Xmlsoft 2.4.7 2.4.7
Libxml2 Xmlsoft 2.4.8 2.4.8
Libxml2 Xmlsoft 2.4.9 2.4.9
Libxml2 Xmlsoft 2.4.10 2.4.10
Libxml2 Xmlsoft 2.4.11 2.4.11
Libxml2 Xmlsoft 2.4.12 2.4.12
Libxml2 Xmlsoft 2.4.13 2.4.13
Libxml2 Xmlsoft 2.4.14 2.4.14
Libxml2 Xmlsoft 2.4.15 2.4.15
Libxml2 Xmlsoft 2.4.16 2.4.16
Libxml2 Xmlsoft 2.4.17 2.4.17
Libxml2 Xmlsoft 2.4.18 2.4.18
Libxml2 Xmlsoft 2.4.19 2.4.19
Libxml2 Xmlsoft 2.4.20 2.4.20
Libxml2 Xmlsoft 2.4.21 2.4.21
Libxml2 Xmlsoft 2.4.22 2.4.22
Libxml2 Xmlsoft 2.4.23 2.4.23
Libxml2 Xmlsoft 2.4.24 2.4.24
Libxml2 Xmlsoft 2.4.25 2.4.25
Libxml2 Xmlsoft 2.4.26 2.4.26
Libxml2 Xmlsoft 2.4.27 2.4.27
Libxml2 Xmlsoft 2.4.28 2.4.28
Libxml2 Xmlsoft 2.4.29 2.4.29
Libxml2 Xmlsoft 2.4.30 2.4.30
Libxml2 Xmlsoft 2.5.0 2.5.0
Libxml2 Xmlsoft 2.5.4 2.5.4
Libxml2 Xmlsoft 2.5.7 2.5.7
Libxml2 Xmlsoft 2.5.8 2.5.8
Libxml2 Xmlsoft 2.5.10 2.5.10
Libxml2 Xmlsoft 2.5.11 2.5.11
Libxml2 Xmlsoft 2.6.0 2.6.0
Libxml2 Xmlsoft 2.6.1 2.6.1
Libxml2 Xmlsoft 2.6.2 2.6.2
Libxml2 Xmlsoft 2.6.3 2.6.3
Libxml2 Xmlsoft 2.6.4 2.6.4
Libxml2 Xmlsoft 2.6.5 2.6.5
Libxml2 Xmlsoft 2.6.6 2.6.6
Libxml2 Xmlsoft 2.6.7 2.6.7
Libxml2 Xmlsoft 2.6.8 2.6.8
Libxml2 Xmlsoft 2.6.9 2.6.9
Libxml2 Xmlsoft 2.6.11 2.6.11
Libxml2 Xmlsoft 2.6.12 2.6.12
Libxml2 Xmlsoft 2.6.13 2.6.13
Libxml2 Xmlsoft 2.6.14 2.6.14
Libxml2 Xmlsoft 2.6.16 2.6.16
Libxml2 Xmlsoft 2.6.17 2.6.17
Libxml2 Xmlsoft 2.6.18 2.6.18
Libxml2 Xmlsoft 2.6.20 2.6.20
Libxml2 Xmlsoft 2.6.21 2.6.21
Libxml2 Xmlsoft 2.6.22 2.6.22
Libxml2 Xmlsoft 2.6.23 2.6.23
Libxml2 Xmlsoft 2.6.24 2.6.24
Libxml2 Xmlsoft 2.6.25 2.6.25
Libxml2 Xmlsoft 2.6.26 2.6.26
Libxml2 Xmlsoft 2.6.27 2.6.27
Libxml2 Xmlsoft 2.6.28 2.6.28
Libxml2 Xmlsoft 2.6.29 2.6.29
Libxml2 Xmlsoft 2.6.30 2.6.30
Libxml2 Xmlsoft 2.6.31 2.6.31
Libxml2 Xmlsoft 2.6.32 2.6.32
Libxml2 Xmlsoft 2.7.0 2.7.0
Libxml2 Xmlsoft 2.7.1 2.7.1
Libxml2 Xmlsoft 2.7.2 2.7.2
Libxml2 Xmlsoft 2.7.3 2.7.3
Libxml2 Xmlsoft 2.7.4 2.7.4
Libxml2 Xmlsoft 2.7.5 2.7.5
Libxml2 Xmlsoft 2.7.6 2.7.6
Libxml2 Xmlsoft 2.7.7 2.7.7
Libxml2 Xmlsoft 2.7.8 2.7.8
Libxml2 Xmlsoft 2.8.0 2.8.0
Libxml2 Xmlsoft * 2.9.0
Red Hat Enterprise Linux 6 RedHat libxml2-0:2.7.6-14.el6_5.1 *
Chromium-browser Ubuntu devel *
Chromium-browser Ubuntu lucid *
Chromium-browser Ubuntu precise *
Chromium-browser Ubuntu quantal *
Chromium-browser Ubuntu raring *
Chromium-browser Ubuntu upstream *
Libxml2 Ubuntu devel *
Libxml2 Ubuntu lucid *
Libxml2 Ubuntu precise *
Libxml2 Ubuntu quantal *
Libxml2 Ubuntu raring *
Libxml2 Ubuntu upstream *

Extended Description

Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced. This can cause read or write operations to be performed on memory locations that may be associated with other variables, data structures, or internal program data. As a result, an attacker may be able to execute arbitrary code, alter the intended control flow, read sensitive information, or cause the system to crash.

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.

  • For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer.

  • Be wary that a language’s interface to native code may still be subject to overflows, even if the language itself is theoretically safe.

  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.

  • Examples include the Safe C String Library (SafeStr) by Messier and Viega [REF-57], and the Strsafe.h library from Microsoft [REF-56]. These libraries provide safer versions of overflow-prone string-handling functions.

  • Run or compile the software using features or extensions that automatically provide a protection mechanism that mitigates or eliminates buffer overflows.

  • For example, certain compilers and extensions provide automatic buffer overflow detection mechanisms that are built into the compiled code. Examples include the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice.

  • Consider adhering to the following rules when allocating and managing an application’s memory:

  • Run or compile the software using features or extensions that randomly arrange the positions of a program’s executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code.

  • Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64].

References