CVEfocus › CVE database › CVE-2016-7798

CVE-2016-7798

CVSS 7.5 HighEPSS 3.2% (higher than 88% of CVEs)Published 2017-01-30Updated 2024-08-06Assigner: mitre

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.

What to do

Fixed builds are available from Debian, RubyGems, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
2Fix pending
25Will not fix
10Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04ruby-attr-encryptedNot affected
vulnerable_code_not_present
Ubuntu 26.04ruby-encryptorNot affected
vulnerable_code_not_present
Ubuntu 25.10ruby-attr-encryptedNot affected
vulnerable_code_not_present
Ubuntu 25.10ruby-encryptorNot affected
vulnerable_code_not_present
Ubuntu 24.04ruby-attr-encryptedNot affected
vulnerable_code_not_present
Ubuntu 24.04ruby-encryptorNot affected
vulnerable_code_not_present
Ubuntu 22.04ruby-attr-encryptedNot affected
vulnerable_code_not_present
Ubuntu 22.04ruby-encryptorNot affected
vulnerable_code_not_present
Ubuntu 20.04ruby-attr-encryptedNot affected
vulnerable_code_not_present
Ubuntu 20.04ruby-encryptorNot affected
vulnerable_code_not_present
Ubuntu 16.04ruby-attr-encryptedFix pendingUBUNTU-CVE-2016-7798
Ubuntu 16.04ruby-encryptorFix pendingUBUNTU-CVE-2016-7798
Ubuntu 16.04ruby2.3Fixed2.3.1-2~16.04.2UBUNTU-CVE-2016-7798
Ubuntu 14.04ruby1.9.1Fixed1.9.3.484-2ubuntu1.3UBUNTU-CVE-2016-7798
Ubuntu 14.04ruby2.0Fixed2.0.0.484-1ubuntu2.4UBUNTU-CVE-2016-7798
Debian 14ruby-attr-encryptedFixed3.0.1-2DEBIAN-CVE-2016-7798
Debian 14ruby-encryptorFixed3.0.0-1DEBIAN-CVE-2016-7798
Debian 13ruby-attr-encryptedFixed3.0.1-2DEBIAN-CVE-2016-7798
Debian 13ruby-encryptorFixed3.0.0-1DEBIAN-CVE-2016-7798
Debian 12ruby-attr-encryptedFixed3.0.1-2DEBIAN-CVE-2016-7798
Debian 12ruby-encryptorFixed3.0.0-1DEBIAN-CVE-2016-7798
Red Hat Enterprise Linux 7rubyWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-develWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-docWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-irbWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-libsWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-tcltkWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-bigdecimalWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-io-consoleWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-minitestWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-psychWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-rakeWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-rdocWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygemsWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygems-develWill not fix
Will not fix
Red Hat Enterprise Linux 6rubyWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-develWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-docsWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-irbWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-libsWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-rdocWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-riWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-staticWill not fix
Will not fix
Red Hat Enterprise Linux 6ruby-tcltkWill not fix
Will not fix
Red Hat Enterprise Linux 5rubyWill not fix
Will not fix
RubyGems libraryopensslFixed2.0.0GHSA-6h88-qjpv-p32m

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.