NULL Pointer Dereference Affecting cryptography package, versions [,42.0.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
3.19% (87th 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-PYTHON-CRYPTOGRAPHY-6210214
  • published31 Jan 2024
  • disclosed22 Jan 2024
  • creditBahaa Naamneh

Introduced: 22 Jan 2024

CVE-2024-0727  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade cryptography to version 42.0.2 or higher.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference when processing a maliciously formatted PKCS12 file. The vulnerability exists due to improper handling of optional ContentInfo fields, which can be set to null. An attacker can cause a denial of service by sending crafted input that leads to applications loading files in PKCS12 format from untrusted sources to terminate abruptly.

CVSS Base Scores

version 3.1