cryptography vulnerabilities

cryptography is a package which provides cryptographic recipes and primitives to Python developers.

Registry
PyPI
Latest
50.0.2
License
Apache-2.0 OR BSD-3-Clause

24 known advisories

The latest version, 50.0.2, is not affected by any of them. Projects on older versions may be.

Update to the latest version:pip install 'cryptography>=50.0.2'

Is your project on an affected cryptography?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for cryptography

  • MediumCVE-2026-69248GHSA-m2h6-j472-rp4c3 Aug 2026

    python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees

    Affected
    >=45.0.0 <49.0.0
    Fixed in
    49.0.0
  • HighCVE-2026-69249GHSA-jwv3-5hgf-82ww3 Aug 2026

    python-cryptography: Duplicate self-signed intermediates can cause exponential path-building

    Affected
    >=42.0.0 <49.0.0
    Fixed in
    49.0.0
  • HighCVE-2026-69247GHSA-g6cj-pr64-35w53 Aug 2026

    cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing

    Affected
    >=44.0.0 <50.0.0
    Fixed in
    50.0.0
  • HighGHSA-537c-gmf6-5ccf15 Jun 2026

    Vulnerable OpenSSL included in cryptography wheels

    Affected
    >=0.5.0 <48.0.1
    Fixed in
    48.0.1
  • MediumCVE-2026-39892GHSA-p423-j2cm-9vmq8 Apr 2026

    Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs

    Affected
    >=45.0.0 <46.0.7
    Fixed in
    46.0.7
  • LowCVE-2026-34073GHSA-m959-cc7f-wv4327 Mar 2026

    cryptography has incomplete DNS name constraint enforcement on peer names

    Affected
    <46.0.6
    Fixed in
    46.0.6
  • HighCVE-2026-26007GHSA-r6ph-v2qm-q3c210 Feb 2026

    cryptography Vulnerable to a Subgroup Attack Due to Missing Subgroup Validation for SECT Curves

    Affected
    <46.0.5
    Fixed in
    46.0.5
  • LowCVE-2024-12797GHSA-79v4-65xg-pq4g11 Feb 2025

    Vulnerable OpenSSL included in cryptography wheels

    Affected
    >=42.0.0 <44.0.1
    Fixed in
    44.0.1
  • MediumGHSA-h4gh-qq45-vh273 Sept 2024

    pyca/cryptography has a vulnerable OpenSSL included in cryptography wheels

    Affected
    >=37.0.0 <43.0.1
    Fixed in
    43.0.1
  • HighCVE-2024-26130GHSA-6vqw-3v5j-54x421 Feb 2024

    cryptography NULL pointer dereference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override

    Affected
    >=38.0.0 <42.0.4
    Fixed in
    42.0.4
  • HighCVE-2023-50782GHSA-3ww4-gg4f-jr7f5 Feb 2024

    Python Cryptography package vulnerable to Bleichenbacher timing oracle attack

    Affected
    <42.0.0
    Fixed in
    42.0.0
  • MediumCVE-2024-0727GHSA-9v9h-cgj8-h64p26 Jan 2024

    Null pointer dereference in PKCS12 parsing

    Affected
    <42.0.2
    Fixed in
    42.0.2
  • MediumCVE-2023-49083GHSA-jfhm-5ghh-2f9728 Nov 2023

    cryptography vulnerable to NULL-dereference when loading PKCS7 certificates

    Affected
    >=3.1 <41.0.6
    Fixed in
    41.0.6
  • LowGHSA-v8gr-m533-ghj921 Sept 2023

    Vulnerable OpenSSL included in cryptography wheels

    Affected
    >=2.5 <41.0.4
    Fixed in
    41.0.4
  • LowGHSA-jm77-qphf-c4w81 Aug 2023

    pyca/cryptography's wheels include vulnerable OpenSSL

    Affected
    >=0.8 <41.0.3
    Fixed in
    41.0.3
  • HighCVE-2023-38325GHSA-cf7p-gm2m-833m14 Jul 2023

    cryptography mishandles SSH certificates

    Affected
    >=40.0.0 <41.0.2
    Fixed in
    41.0.2
  • LowGHSA-5cpq-8wj7-hf2v2 Jun 2023

    Vulnerable OpenSSL included in cryptography wheels

    Affected
    >=0.5 <41.0.0
    Fixed in
    41.0.0
  • HighCVE-2023-0286GHSA-x4qr-2fvf-3mr58 Feb 2023

    Vulnerable OpenSSL included in cryptography wheels

    Affected
    >=0.8.1 <39.0.1
    Fixed in
    39.0.1
  • MediumCVE-2023-23931GHSA-w7pp-m8wf-vj6r7 Feb 2023

    Cipher.update_into can corrupt memory if passed an immutable python object as the outbuf

    Affected
    >=1.8 <39.0.1
    Fixed in
    39.0.1
  • MediumGHSA-39hc-v87j-747x2 Nov 2022

    Vulnerable OpenSSL included in cryptography wheels

    Affected
    >=37.0.0 <38.0.3
    Fixed in
    38.0.3
  • HighCVE-2016-9243GHSA-q3cj-2r34-2cwc17 May 2022

    Improper input validation in cryptography

    Affected
    <1.5.3
    Fixed in
    1.5.3
  • HighCVE-2020-36242GHSA-rhm9-p9w5-fwm710 Feb 2021

    PyCA Cryptography symmetrically encrypting large values can lead to integer overflow

    Affected
    >=3.1 <3.3.2
    Fixed in
    3.3.2
  • HighCVE-2020-25659GHSA-hggm-jpg3-v47627 Oct 2020

    RSA decryption vulnerable to Bleichenbacher timing vulnerability

    Affected
    <3.2
    Fixed in
    3.2
  • HighCVE-2018-10903GHSA-fcf9-3qw3-gxmj31 Jul 2018

    PyCA Cryptography vulnerable to GCM tag forgery

    Affected
    >=1.9.0 <2.3
    Fixed in
    2.3

Is your cryptography version vulnerable?

Which of your client projects still run an old cryptography?

NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other PyPI packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.