CVE-2016-7798 · mitre
CVE-2016-7798
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 2017-01-30, last changed 2026-06-17. Weakness: CWE-326.
How to fix
Upgrade to a fixed version: openssl 2.0.0 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in ruby/openssl by 8108e0a6db, 4ff95439d0. Functions changed by the fix: ossl_cipher_initialize, ossl_cipher_init, ossl_cipher_pkcs5_keyivgen, ossl_cipher_update, ossl_cipher_set_key, Init_ossl_cipher. Regression tests: test/test_cipher.rb. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2017-01-30 | Published |
| 2017-10-24 | Package advisory GHSA-6h88-qjpv-p32m |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 3.17% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-6h88-qjpv-p32m | openssl (RubyGems) | 2.0.0 |
Also known as: GHSA-6h88-qjpv-p32m
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2018-16395 | 2018-11-16 | 9.8 | same package: openssl (RubyGems) |
| CVE-2017-14033 | 2017-09-19 | 7.5 | same package: openssl (RubyGems) |
| CVE-2025-63579 | 2026-07-09 | 7.5 | same weakness (CWE-326) from the same CNA (mitre) |
| CVE-2025-65295 | 2025-12-10 | 8.1 | same weakness (CWE-326) from the same CNA (mitre) |
| CVE-2025-45765 | 2025-08-07 | 9.1 | same weakness (CWE-326) from the same CNA (mitre) |
| CVE-2025-45764 | 2025-08-06 | 3.2 | same weakness (CWE-326) from the same CNA (mitre) |
| CVE-2025-45770 | 2025-07-31 | 7 | same weakness (CWE-326) from the same CNA (mitre) |
| CVE-2025-45769 | 2025-07-31 | 6.5 | same weakness (CWE-326) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-7798, or call /api/v1/vulnerabilities/CVE-2016-7798. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.