CVE-2016-7798
HIGH7.5EPSS 0.56%OpenSSL gem for Ruby using inadequate encryption strength
Published: 10/24/2017Modified: 4/28/2026
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.
Affected packages (3)
- Debian/ruby-attr-encryptedfrom 0, < 3.0.1-2
- Debian/ruby-encryptorfrom 0, < 3.0.0-1
- RubyGems/opensslfrom 0, < 2.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References (13)
- ADVISORYhttps://github.com/advisories/GHSA-6h88-qjpv-p32m
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2016-7798
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2016-7798
- PATCHhttps://github.com/ruby/openssl
- WEBhttps://github.com/ruby/openssl/commit/8108e0a6db133f3375608303fdd2083eb5115062
- WEBhttps://github.com/ruby/openssl/issues/49
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/openssl/CVE-2016-7798.yml
- WEBhttps://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- WEBhttps://web.archive.org/web/20210121065227/https://www.securityfocus.com/bid/93031/info
- WEBhttps://www.debian.org/security/2017/dsa-3966
- WEBhttp://www.openwall.com/lists/oss-security/2016/09/19/9
- WEBhttp://www.openwall.com/lists/oss-security/2016/09/30/6
- WEBhttp://www.openwall.com/lists/oss-security/2016/10/01/2