CVE-2015-5312 Nokogiri subject to DoS via libxml2 vulnerability

High 7.1 Published Updated

Attackers can cause denial of service via CPU consumption by sending crafted XML data to applications using the vulnerable libxml2 library.

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

What is CVE-2015-5312?

CVE-2015-5312 is a high-severity denial of service vulnerability in Apple Iphone Os, published on 15 Dec 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The xmlStringLenDecodeEntities function in parser.c in libxml2 before 2.9.3 does not properly prevent entity expansion, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted XML data, a different vulnerability than CVE-2014-3660.

Weakness: CWE-399

Which versions are affected by CVE-2015-5312?

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

PackageAffectedFixed in
nokogiri RubyGemsFrom 1.6.01.6.7.1
nokogiri RubyGemsFrom 1.6.01.6.7.1

Products include Apple Iphone Os, Apple Mac Os X, Apple Tvos, Apple Watchos, Canonical Ubuntu Linux, Debian Debian Linux and 7 more.

How do I fix CVE-2015-5312?

Upgrade nokogiri to 1.6.7.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2015-5312 being exploited?

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

All Apple Iphone Os vulnerabilities

Sources

Also known as DEBIAN-CVE-2015-5312, ECHO-ad99-83b5-cd1c, GHSA-xjqg-9jvg-fgx2, UBUNTU-CVE-2015-5312.

Is CVE-2015-5312 in your software?

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

Check your SBOMs for free