Use After Free Affecting cryptography package, versions [,39.0.1)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.69% (80th 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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-CRYPTOGRAPHY-3315324
  • published8 Feb 2023
  • disclosed7 Feb 2023
  • creditOctavio Galland, Marcel Böhme

Introduced: 7 Feb 2023

CVE-2023-0215  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade cryptography to version 39.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the BIO_new_NDEF() function. A new filter BIO can be freed, with the function returning a NULL result indicating a failure. But the BIO passed by the caller still holds pointers to the previously freed filter BIO. This could allow an attacker to cause a crash.

CVSS Scores

version 3.1