Integer Overflow or Wraparound Affecting openssl-src package, versions <1.1.1j


Severity

Recommended
0.0
low
0
10

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

Threat Intelligence

EPSS
0.85% (83rd 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-RUST-OPENSSLSRC-1278996
  • published3 May 2021
  • disclosed1 May 2021
  • creditPaul Kehrer

Introduced: 1 May 2021

CVE-2021-23840  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade openssl-src to version 1.1.1j or higher.

Overview

openssl-src is a crate that contains the logic to build OpenSSL and is intended to be consumed by the openssl-sys crate.

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissable length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output length value will be negative. This could cause applications to behave incorrectly or crash.

CVSS Scores

version 3.1