Search for packages
Package details: pkg:pypi/cryptography@41.0.7
purl pkg:pypi/cryptography@41.0.7
Next non-vulnerable version 44.0.1
Latest non-vulnerable version 44.0.1
Risk 4.0
Vulnerabilities affecting this package (4)
Vulnerability Summary Fixed by
VCID-9735-12nm-2bcw
Aliases:
GHSA-h4gh-qq45-vh27
pyca/cryptography has a vulnerable OpenSSL included in cryptography wheels pyca/cryptography's wheels include a statically linked copy of OpenSSL. The versions of OpenSSL included in cryptography 37.0.0-43.0.0 are vulnerable to a security issue. More details about the vulnerability itself can be found in https://openssl-library.org/news/secadv/20240903.txt. If you are building cryptography source ("sdist") then you are responsible for upgrading your copy of OpenSSL. Only users installing from wheels built by the cryptography project (i.e., those distributed on PyPI) need to update their cryptography versions.
43.0.1
Affected by 1 other vulnerability.
VCID-asvq-g6rg-6fb6
Aliases:
CVE-2023-50782
GHSA-3ww4-gg4f-jr7f
Python Cryptography package vulnerable to Bleichenbacher timing oracle attack A flaw was found in the python-cryptography package. This issue may allow a remote attacker to decrypt captured messages in TLS servers that use RSA key exchanges, which may lead to exposure of confidential or sensitive data.
42.0.0
Affected by 4 other vulnerabilities.
VCID-s16a-spa1-pubx
Aliases:
CGA-f4qg-9fw4-8247
CVE-2024-26130
GHSA-6vqw-3v5j-54x4
PYSEC-2024-225
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Starting in version 38.0.0 and prior to version 42.0.4, if `pkcs12.serialize_key_and_certificates` is called with both a certificate whose public key did not match the provided private key and an `encryption_algorithm` with `hmac_hash` set (via `PrivateFormat.PKCS12.encryption_builder().hmac_hash(...)`, then a NULL pointer dereference would occur, crashing the Python process. This has been resolved in version 42.0.4, the first version in which a `ValueError` is properly raised.
42.0.4
Affected by 2 other vulnerabilities.
VCID-vyp9-gg98-wqdc
Aliases:
CVE-2024-0727
GHSA-9v9h-cgj8-h64p
Null pointer dereference in PKCS12 parsing Issue summary: Processing a maliciously formatted PKCS12 file may lead OpenSSL to crash leading to a potential Denial of Service attack Impact summary: Applications loading files in the PKCS12 format from untrusted sources might terminate abruptly. A file in PKCS12 format can contain certificates and keys and may come from an untrusted source. The PKCS12 specification allows certain fields to be NULL, but OpenSSL does not correctly check for this case. This can lead to a NULL pointer dereference that results in OpenSSL crashing. If an application processes PKCS12 files from an untrusted source using the OpenSSL APIs then that application will be vulnerable to this issue. OpenSSL APIs that are vulnerable to this are: PKCS12_parse(), PKCS12_unpack_p7data(), PKCS12_unpack_p7encdata(), PKCS12_unpack_authsafes() and PKCS12_newpass(). We have also fixed a similar issue in SMIME_write_PKCS7(). However since this function is related to writing data we do not consider it security significant. The FIPS modules in 3.2, 3.1 and 3.0 are not affected by this issue.
42.0.2
Affected by 3 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2025-08-01T11:54:30.458230+00:00 GitLab Importer Affected by VCID-9735-12nm-2bcw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/cryptography/GHSA-h4gh-qq45-vh27.yml 37.0.0
2025-08-01T11:35:28.399120+00:00 GitLab Importer Affected by VCID-s16a-spa1-pubx https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/cryptography/CVE-2024-26130.yml 37.0.0
2025-08-01T11:33:37.102113+00:00 GitLab Importer Affected by VCID-asvq-g6rg-6fb6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/cryptography/CVE-2023-50782.yml 37.0.0
2025-08-01T11:31:54.784793+00:00 GitLab Importer Affected by VCID-vyp9-gg98-wqdc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/cryptography/CVE-2024-0727.yml 37.0.0
2025-08-01T08:53:00.178592+00:00 PyPI Importer Affected by VCID-s16a-spa1-pubx https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 37.0.0
2025-07-31T08:25:06.481259+00:00 Pypa Importer Affected by VCID-s16a-spa1-pubx https://github.com/pypa/advisory-database/blob/main/vulns/cryptography/PYSEC-2024-225.yaml 37.0.0