RubySec

Providing security resources for the Ruby community

CVE-2016-7798 (openssl): Incorrect handling of initialization vector in the GCM mode in OpenSSL

ADVISORIES

GEM

openssl

SEVERITY

CVSS v3: 7.5

CVSS v2: 5.0

PATCHED VERSIONS

  • >= 2.0.0

DESCRIPTION

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.