Name
python3-cryptography
Version
36.0.2
Type
library
Description
Provides cryptographic recipes and primitives to python developers
Licenses
( Apache-2.0 | BSD-3-Clause ) & PSF-2.0
PURL
-
CPE
cpe:2.3:*:*:python3-cryptography:36.0.2:*:*:*:*:*:*:*
Other Versions#
Patches#
#
Title
Author
Resolve
1
Fixed crash when loading a PKCS#7 bundle with no certificates
Alex Gaynor <alex.gaynor@gmail.com>
CVE-2023-49083
2
Cargo.toml: edition 2018 -> 2021
Tim Orling <tim.orling@konsulko.com>
3
Don't allow update_into to mutate immutable objects (#8230)
Alex Gaynor <alex.gaynor@gmail.com>
CVE-2023-23931
4
Fixes #10422 -- don't crash when a PKCS#12 key and cert don't
Alex Gaynor <alex.gaynor@gmail.com>
CVE-2024-26130
5
Added Ubuntu Jammy to CI (#7047)
Alex Gaynor <alex.gaynor@gmail.com>
6
Cargo.toml: specify pem version
Tim Orling <tim.orling@konsulko.com>
Vulnerabilities#
Name
Analysis
Description
Patched
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.
Patched
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Calling `load_pem_pkcs7_certificates` or `load_der_pkcs7_certificates` could lead to a NULL-pointer dereference and segfault. Exploitation of this vulnerability poses a serious risk of Denial of Service (DoS) for any application attempting to deserialize a PKCS7 blob/certificate. The consequences extend to potential disruptions in system availability and stability. This vulnerability has been patched in version 41.0.6.
Patched
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In affected versions `Cipher.update_into` would accept Python objects which implement the buffer protocol, but provide only immutable buffers. This would allow immutable objects (such as `bytes`) to be mutated, thus violating fundamental rules of Python and resulting in corrupted output. This now correctly raises an exception. This issue has been present since `update_into` was originally introduced in cryptography 1.8.