sparklemotion/nokogiri · Security

Nokogiri implementation of libxslt lacks integer overflow checks

GHSA ID
GHSA-pf6m-fxpq-fg8v
CVE ID
CVE-2017-5029
Severity
high
Published
Updated
CVSS
8.8 · CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v3
8.8 · CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Description

The xsltAddTextString function in transform.c in libxslt 1.1.29, as used in Nokogiri prior to 1.7.2, 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.

CWEs

References