CVE-2017-16229 Ox gem stack overflow in sax_parse

Medium 5.5 Published Updated

A stack-based buffer over-read in the Ox Ruby gem allows attackers to cause a denial of service via crafted XML input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2017-16229?

CVE-2017-16229 is a medium-severity memory corruption vulnerability in n/a, published on 26 Feb 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In the Ox gem 2.8.1 for Ruby, the process crashes with a stack-based buffer over-read in the read_from_str function in sax_buf.c when a crafted input is supplied to sax_parse.

Weakness: CWE-125

Which versions are affected by CVE-2017-16229?

2 open source packages ship an affected version, including ox. It affects 1 product.

PackageAffectedFixed in
ox RubyGemsAll versions2.8.2
ox RubyGemsAll versions2.8.2

Products include Ox Project Ox.

How do I fix CVE-2017-16229?

Upgrade ox to 2.8.2 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2017-16229 being exploited?

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

Sources

Also known as DEBIAN-CVE-2017-16229, GHSA-wfwm-chj7-w59r, UBUNTU-CVE-2017-16229.

Is CVE-2017-16229 in your software?

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

Check your SBOMs for free