KeygraphLabs · CVE MCP

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.

CVSS
7.5
high, from NVD
EPSS
3.17%
percentile 88.4%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-30Published
2017-10-24Package advisory GHSA-6h88-qjpv-p32m
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 3.17%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-6h88-qjpv-p32mopenssl (RubyGems)2.0.0

Also known as: GHSA-6h88-qjpv-p32m

Related

CVEPublishedCVSSSummary
CVE-2018-163952018-11-169.8same package: openssl (RubyGems)
CVE-2017-140332017-09-197.5same package: openssl (RubyGems)
CVE-2025-635792026-07-097.5same weakness (CWE-326) from the same CNA (mitre)
CVE-2025-652952025-12-108.1same weakness (CWE-326) from the same CNA (mitre)
CVE-2025-457652025-08-079.1same weakness (CWE-326) from the same CNA (mitre)
CVE-2025-457642025-08-063.2same weakness (CWE-326) from the same CNA (mitre)
CVE-2025-457702025-07-317same weakness (CWE-326) from the same CNA (mitre)
CVE-2025-457692025-07-316.5same 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.

NVD · CVE.org