CVE-2019-13117 Uninitialized read in Nokogiri gem

Medium 5.3 Published Updated

An attacker can read uninitialized stack memory via crafted XSLT number formats, potentially disclosing sensitive data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-13117?

CVE-2019-13117 is a medium-severity vulnerability in Canonical Ubuntu Linux, published on 1 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In numbers.c in libxslt 1.1.33, an xsl:number with certain format strings could lead to a uninitialized read in xsltNumberFormatInsertNumbers. This could allow an attacker to discern whether a byte on the stack contains the characters A, a, I, i, or 0, or any other character.

Weakness: CWE-908

Which versions are affected by CVE-2019-13117?

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

PackageAffectedFixed in
nokogiri RubyGemsAll versions1.10.5
nokogiri RubyGemsAll versions1.10.5

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Opensuse Leap, Oracle Openjdk, Xmlsoft Libxslt.

How do I fix CVE-2019-13117?

Upgrade nokogiri to 1.10.5 or later.

Is CVE-2019-13117 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-13117, DEBIAN-CVE-2019-13117, GHSA-4hm9-844j-jmxp, JLSEC-2026-578, UBUNTU-CVE-2019-13117.

Is CVE-2019-13117 in your software?

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

Check your SBOMs for free