Out of Bounds Memory Write

Affecting nokogiri gem, versions <1.7.2

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

nokogiri (鋸) is an HTML, XML, SAX, and Reader parser, with the ability to search documents via XPath or CSS3 selectors.

Affected versions of the package are vulnerable to Out of Bounds Memory Write. Nokogiri bundles the libxslt library, which is vulnerable in versions below 3. The xsltAddTextString function in transform.c lacked a check for integer overflow during a size calculation, which allowed a remote attacker to perform an out of bounds memory write via a crafted HTML page.

Remediation

Upgrade nokogiri to version 1.7.2 or higher.

References

CVSS Score

8.8
high severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    Required
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    High
  • Availability
    High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Credit
Unknown
CVE
CVE-2017-5029
CWE
CWE-787
Snyk ID
SNYK-RUBY-NOKOGIRI-20368
Disclosed
24 Apr, 2017
Published
15 May, 2017