CVE-2016-7798 OpenSSL gem for Ruby using inadequate encryption strength

High 7.5 Published Updated

The Ruby OpenSSL gem reuses initialization vectors in GCM mode, allowing attackers to bypass encryption protection mechanisms.

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

What is CVE-2016-7798?

CVE-2016-7798 is a high-severity vulnerability in Debian Debian Linux, published on 30 Jan 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The openssl gem for Ruby uses the same initialization vector (IV) in GCM Mode (aes-*-gcm) when the IV is set before the key, which makes it easier for context-dependent attackers to bypass the encryption protection mechanism.

Weakness: CWE-326

Which versions are affected by CVE-2016-7798?

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

PackageAffectedFixed in
openssl RubyGemsAll versions2.0.0
openssl RubyGemsAll versions2.0.0

Products include Debian Debian Linux, Ruby-Lang Openssl.

How do I fix CVE-2016-7798?

Upgrade openssl to 2.0.0 or later.

Is CVE-2016-7798 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2016-7798, GHSA-6h88-qjpv-p32m, MGASA-2016-0342, UBUNTU-CVE-2016-7798.

Is CVE-2016-7798 in your software?

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

Check your SBOMs for free