CVE-2016-7798

NameCVE-2016-7798
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-3966-1
NVD severitymedium (attack range: remote)
Debian Bugs842432, 842544

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-attr-encrypted (PTS)buster, sid, stretch3.0.1-2fixed
ruby-encryptor (PTS)buster, sid, stretch3.0.0-1fixed
ruby2.1 (PTS)jessie2.1.5-2+deb8u3vulnerable
jessie (security)2.1.5-2+deb8u1vulnerable
ruby2.3 (PTS)buster, sid, stretch2.3.3-1vulnerable
stretch (security)2.3.3-1+deb9u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby-attr-encryptedsource(unstable)3.0.1-2medium
ruby-encryptorsource(unstable)3.0.0-1medium
ruby2.1source(unstable)(unfixed)medium842544
ruby2.3source(unstable)(unfixed)medium842432
ruby2.3sourcestretch2.3.3-1+deb9u1mediumDSA-3966-1

Notes

[jessie] - ruby2.1 <no-dsa> (Minor issue)
https://github.com/ruby/openssl/issues/49
https://github.com/ruby/openssl/commit/8108e0a6db133f3375608303fdd2083eb5115062
https://github.com/attr-encrypted/attr_encrypted/issues/203
https://github.com/attr-encrypted/encryptor/pull/22

Search for package or bug name: Reporting problems