Missing Cryptographic Step Affecting openssl package, versions >=3.0.0, <3.2.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (45th 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 IDSNYK-RUBY-OPENSSL-6036190
  • published26 Oct 2023
  • disclosed24 Oct 2023
  • creditTony Battersby of Cybernetics

Introduced: 24 Oct 2023

CVE-2023-5363  (opens in a new tab)
CWE-325  (opens in a new tab)

How to fix?

Upgrade openssl to version 3.2.0 or higher.

Overview

openssl is a package that wraps the OpenSSL library.

Affected versions of this package are vulnerable to Missing Cryptographic Step when the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2() functions are used. An attacker can cause truncation or overreading of key and initialization vector (IV) lengths by altering the "keylen" or "ivlen" parameters within the OSSL_PARAM array after the key and IV have been established. This can lead to potential truncation or overruns during the initialization of some symmetric ciphers, such as RC2, RC4, RC5, CCM, GCM, and OCB. A truncation in the IV can result in non-uniqueness, which could result in loss of confidentiality for some cipher modes.

Both truncations and overruns of the key and the IV will produce incorrect results and could, in some cases, trigger a memory exception.

CVSS Scores

version 3.1