CVE-2016-7798
HIGH 7.5CVSS 3.1OpenSSL gem for Ruby using inadequate encryption strength
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.
- Published
- 30 Jan 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-326
- Also known as
- GHSA-6h88-qjpv-p32m
- Sources
- NVDJSONOSV GHSA-6h88-qjpv-p32mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | opensslcpe:2.3:a:ruby-lang:openssl:*:*:*:*:*:ruby:*:* |
< 2.0.0 | 2.0.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | RubyGems | openssl | < 2.0.0 | 2.0.0 |
References
- http://www.openwall.com/lists/oss-security/2016/09/19/9 · Mailing List, Third Party Advisory, WEB
- http://www.openwall.com/lists/oss-security/2016/09/30/6 · Mailing List, Patch, Third Party Advisory, WEB
- http://www.openwall.com/lists/oss-security/2016/10/01/2 · Mailing List, Third Party Advisory, WEB
- http://www.securityfocus.com/bid/93031 · Third Party Advisory, VDB Entry
- https://github.com/ruby/openssl/commit/8108e0a6db133f3375608303fdd2083eb5115062 · Patch, Third Party Advisory, WEB
- https://github.com/ruby/openssl/issues/49 · Exploit, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html · Mailing List, Third Party Advisory, WEB
- https://www.debian.org/security/2017/dsa-3966 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2016-7798 · ADVISORY
- https://github.com/advisories/GHSA-6h88-qjpv-p32m · ADVISORY
- https://github.com/ruby/openssl · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openssl/CVE-2016-7798.yml · WEB
- https://web.archive.org/web/20210121065227/https://www.securityfocus.com/bid/93031/info · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 30 Jan 2017)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)