CVE-2019-8323 RubyGems Escape sequence injection vulnerability in api response handling

High 7.5 Published Updated

Attackers can inject escape sequences into terminal output via malicious API responses in RubyGems, potentially affecting user terminals.

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-8323?

CVE-2019-8323 is a high-severity vulnerability in Debian Debian Linux, published on 17 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in RubyGems 2.6 and later through 3.0.2. Gem::GemcutterUtilities#with_response may output the API response to stdout as it is. Therefore, if the API side modifies the response, escape sequence injection may occur.

Weakness: CWE-74

Which versions are affected by CVE-2019-8323?

4 open source packages ship an affected version, including rubygems-update. It affects 3 products.

PackageAffectedFixed in
rubygems-update RubyGemsFrom 2.6.02.7.9
rubygems-update RubyGemsFrom 2.6.02.7.9
rubygems-update RubyGemsFrom 3.0.03.0.2
rubygems-update RubyGemsFrom 3.0.03.0.2

Products include Debian Debian Linux, Opensuse Leap, Rubygems Rubygems.

How do I fix CVE-2019-8323?

Upgrade rubygems-update to a fixed version for your release line: 2.7.9 or 3.0.2.

Is CVE-2019-8323 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-8323, DEBIAN-CVE-2019-8323, GHSA-3h4r-pjv6-cph9, UBUNTU-CVE-2019-8323.

Is CVE-2019-8323 in your software?

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

Check your SBOMs for free