Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:4240
HistoryMay 17, 2017 - 6:00 a.m.

Multiple Stack Overflows Through Embedded C Dependency

2017-05-1706:00:22
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
12

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

nokogiri has a copied version of the Libxml2 library. Libxml2 is susceptible to 2 stack overflow vulnerabilities. The first is CVE-2017-9047. The function xmlSnprintfElementContent in valid.c does not recursively dump the element content definition into a char buffer buf of size size. When the content->prefix is appended to buf, the content->name is written to the buffer. It checks whether the name will fit into the buffer, however it uses the len variable as the buffer length rather than the concatenated strlen(buf) variable. This only happens when content->type is XML_ELEMENT_CONTENT_ELEMENT. Failing to do this check correctly, allows attackers to write extra bytes beyond the allocated memory. The second is CVE-2017-9048. The end of the function xmlSnprintfElementContent in valid.c. Libxml2 doesnโ€™t check that strlen(buf) +2 < size which allows the function to strcat 2 more characters.

CPENameOperatorVersion
nokogirile1.8.0

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P