CVE-2020-36242

In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer…

published February 7, 2021

CVSS
—
EPSS
7%
Percentile
93.9
In the wild
Unconfirmed
What it is

⚠️ A crafty sequence of update calls in Python's cryptography package can lead to an integer overflow and buffer overflow before version 3.3.2—like trying to stuff too many marshmallows into a cereal box until it bursts! Imagine trying to pack an oversized suitcase with too many clothes, causing it to pop open unexpectedly. The same happens here when certain updates to Fernet encryptions overwhelm the system, leading to potential data leaks or crashes. This vulnerability could allow an attacker to exploit the overflow, leading to unexpected behavior, such as application crashes or data corruption. While there are no reports of exploitation yet, the consequences could be serious for any application relying on this cryptography package.

Put simply

Imagine trying to pack an oversized suitcase with too many clothes, causing it to pop open unexpectedly. The same happens here when certain updates to Fernet encryptions overwhelm the system, leading to potential data leaks or crashes. The issue arises from specific sequences of calls to the Fernet class in the cryptography package, where the handling of large values can lead to integer and buffer overflows, potentially compromising the integrity of the encrypted data.

What to do

This vulnerability could allow an attacker to exploit the overflow, leading to unexpected behavior, such as application crashes or data corruption. While there are no reports of exploitation yet, the consequences could be serious for any application relying on this cryptography package. To mitigate this vulnerability, upgrade to version 3.3.2 or later of the cryptography package. Regularly review your encryption practices and test your applications for any unexpected behavior following the update. You've got this! Update your package and keep your data safe! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.06718 · 93.9th percentile
Published
2021-02-07T19:50Z
EPSS history
Timeline
  • 07 FEB 19:50Z
    In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer…
    cvelistv5