CVE-2020-36242
Python vulnerability analysis and mitigation

Overview

In the cryptography package before version 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer overflow and buffer overflow, as demonstrated by the Fernet class. The vulnerability was discovered and disclosed on February 7, 2021, and is tracked as CVE-2020-36242 (NVD, MITRE).

Technical details

The vulnerability occurs when using the Fernet class to encrypt large data (>2GiB). The issue stems from an integer overflow in OpenSSL that occurs during symmetric encryption operations. When attempting to encrypt data sizes around 2^31 - 1 bytes or larger, the integer overflow can lead to buffer overflows. The vulnerability was fixed in cryptography version 3.3.2 by correcting the buffer overflow caused by integer overflow in OpenSSL (GitHub Changelog).

Impact

If exploited, this vulnerability could result in buffer overflows, potentially leading to application crashes or arbitrary code execution. The vulnerability affects applications using the Python cryptography package for encrypting large amounts of data, particularly when using the Fernet class for symmetric encryption of files larger than 2GB (GitHub Issue).

Mitigation and workarounds

The recommended mitigation is to upgrade to cryptography version 3.3.2 or later, which contains the fix for this vulnerability. The issue was resolved by correcting the buffer overflow caused by integer overflow in OpenSSL (GitHub Changelog).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-70646HIGH7.5
  • Python logoPython
  • aiosend
NoYesAug 06, 2026
CVE-2026-71554MEDIUM5.3
  • Python logoPython
  • python-h2
NoYesAug 06, 2026
CVE-2026-71433MEDIUM5.3
  • Python logoPython
  • langgraph-checkpoint-postgres
NoYesAug 06, 2026
CVE-2026-61632MEDIUM5.3
  • Python logoPython
  • pymdown-extensions
NoYesAug 06, 2026
CVE-2026-64640MEDIUM5.3
  • Python logoPython
  • polaris
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management