CVE-2017-5029 Nokogiri implementation of libxslt lacks integer overflow checks

High 8.8 Published Updated

A remote attacker can execute arbitrary code via a crafted HTML page due to an integer overflow in libxslt within Google Chrome.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2017-5029?

CVE-2017-5029 is a high-severity vulnerability in Debian Debian Linux, published on 24 Apr 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The xsltAddTextString function in transform.c in libxslt 1.1.29, as used in Blink in Google Chrome prior to 57.0.2987.98 for Mac, Windows, and Linux and 57.0.2987.108 for Android, 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.

Weakness: CWE-787

Which versions are affected by CVE-2017-5029?

2 open source packages ship an affected version, including nokogiri. It affects 6 products.

PackageAffectedFixed in
nokogiri RubyGemsAll versions1.7.2
nokogiri RubyGemsAll versions1.7.2

Products include Debian Debian Linux, Google Chrome, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Workstation, Xmlsoft Libxslt.

How do I fix CVE-2017-5029?

Upgrade nokogiri to 1.7.2 or later.

Is CVE-2017-5029 being exploited?

There is no known exploitation of CVE-2017-5029 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2017-5029, DEBIAN-CVE-2017-5029, DLA-866-1, GHSA-pf6m-fxpq-fg8v, MGASA-2017-0125, UBUNTU-CVE-2017-5029.

Is CVE-2017-5029 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free