CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NHigh (7.5). EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in openssl 2.0.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:Nopenssl (RubyGems): fixed in 2.0.0Explain CVE-2016-7798 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-7798?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-7798?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-7798 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| ruby-lang:openssl | before 2.0.0 |
| debian:debian_linux | 8.0 |
| debian:debian_linux | 9.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-6h88-qjpv-p32m | RubyGems | openssl | <2.0.0 | 2.0.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 8 | ruby2.1 | 2.1.5-2+deb8u4 | DLA-1421-1 |
| Debian | 9 | ruby2.3 | 2.3.3-1+deb9u1 | DSA-3966-1 |
| Debian | 12, 13, 14 | ruby-attr-encrypted | 3.0.1-2 | DEBIAN-CVE-2016-7798 |
| Debian | 12, 13, 14 | ruby-encryptor | 3.0.0-1 | DEBIAN-CVE-2016-7798 |
| Ubuntu | 14.04:LTS | ruby1.9.1 | 1.9.3.484-2ubuntu1.3 | UBUNTU-CVE-2016-7798 USN-3365-1 |
| Ubuntu | 14.04:LTS | ruby2.0 | 2.0.0.484-1ubuntu2.4 | UBUNTU-CVE-2016-7798 USN-3365-1 |
| Ubuntu | 16.04:LTS | ruby-encryptor, ruby-attr-encrypted | no fix listed | UBUNTU-CVE-2016-7798 |
| Ubuntu | 16.04:LTS | ruby2.3 | 2.3.1-2~16.04.2 | UBUNTU-CVE-2016-7798 USN-3365-1 |
| SUSE | Enterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 more | ruby2.1 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
| SUSE | Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 more | yast2-ruby-bindings | 3.1.53-9.8.1 | SUSE-SU-2020:1570-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE.
Red Hat rates this Moderate.
A possible workaround to this flaw is, when using aes-256-gcm mode, always set the key first and then the iv. For example when setting random keys and iv use the following code segment:
key = cipher.random_key
iv = cipher.random_iv
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms Management Engine 5 | rh-ruby22-ruby | Will not fix | |
| CloudForms Management Engine 5 | ruby-200-ruby | Will not fix | |
| Red Hat Enterprise Linux 5 | ruby | Will not fix | |
| Red Hat Enterprise Linux 6 | ruby | Will not fix | |
| Red Hat Enterprise Linux 7 | ruby | Will not fix | |
| Red Hat Software Collections | rh-ruby22-ruby | Will not fix | |
| Red Hat Software Collections | rh-ruby23-ruby | Will not fix | |
| Red Hat Software Collections | ruby200-ruby | Will not fix |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-7798.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.