CVE-2020-36242

Publication date 7 February 2021

Last updated 25 August 2025


Ubuntu priority

Cvss 3 Severity Score

9.1 · Critical

Score breakdown

Description

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 overflow and buffer overflow, as demonstrated by the Fernet class.

Read the notes from the security team

Status

Package Ubuntu Release Status
python-cryptography 20.10 groovy
Not affected
20.04 LTS focal
Not affected
18.04 LTS bionic
Not affected
16.04 LTS xenial
Not affected
14.04 LTS trusty Not in release

Notes


mdeslaur

Versions in groovy and earlier don't support chunking in update_into. Attempting reproducer on groovy and focal errors out with: OverflowError: integer 4294967296 does not fit '32-bit int' which seems to indicate there is a size check being performed and they aren't vulnerable to this issue.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
python-cryptography

Severity score breakdown

CVSS version: CVSS v3.0

Base score 9.1 · Critical

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H


Access our resources on patching vulnerabilities