CVE-2016-7798
OpenSSL gem for Ruby using inadequate encryption strength
Reported by mitre · Published January 30, 2017
openssl is fixed in 2.0.0 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| openssl | RubyGems | 2.0.0 |
| ruby2.3 | Ubuntu:16.04:LTS | 2.3.1-2~16.04.2 |
| ruby1.9.1 | Ubuntu:14.04:LTS | 1.9.3.484-2ubuntu1.3 |
| openssl | ruby-lang | 2.0.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| RubyGems | openssl | 0 |
Timeline
- Jan 30, 2017 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 5, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 5, 2026 Security Advisory (3 in total, the first dated here)
- Oct 6, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-7798
vulnetix vdb fixes CVE-2016-7798
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-7798/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [oss-security] 20160930 Re: CVE Request - Ruby OpenSSL Library - IV Reuse in GCM Mode mailing-listx_refsource_MLIST
- DSA-3966 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- [oss-security] 20160930 Re: CVE Request - Ruby OpenSSL Library - IV Reuse in GCM Mode mailing-listx_refsource_MLIST
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update mailing-listx_refsource_MLIST
- [oss-security] 20160919 CVE Request - Ruby OpenSSL Library - IV Reuse in GCM Mode mailing-listx_refsource_MLIST
- 93031 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2016-7798 advisory