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.x: 7.5 (High)

CVSS v2.0: 5.0 (Medium)

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.