Insecure Encryption Affecting rubyzip/rubyzip package, versions [,2.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.95% (76th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insecure Encryption vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-RUBYZIPRUBYZIP-2368647
  • published26 Jan 2022
  • disclosed30 Jan 2017
  • creditUnknown

Introduced: 30 Jan 2017

CVE-2016-7798  (opens in a new tab)
CWE-326  (opens in a new tab)

How to fix?

Upgrade rubyzip/rubyzip to version 2.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Insecure Encryption. 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.

CVSS Base Scores

version 3.1