Vulnerability
CVE-2024-26130
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 advisories report this vulnerability, across 11 ecosystems.
Advisories in Chainguard
- CGA-266w-66rw-qq6w
- CGA-2gpw-7gxw-5q2q
- CGA-2xx9-mj62-fcp9
- CGA-4622-8x7f-p986
- CGA-4mgp-7v94-77r9
- CGA-5pw5-8gm7-j4pj
- CGA-5vrj-4w5g-2v8h
- CGA-6crm-j9xh-263q
- CGA-6pw7-4w75-66cr
- CGA-6v5w-gx3q-c92v
- CGA-82vf-5839-wcv5
- CGA-9wjj-c2r8-q4g2
- CGA-f7v7-56q3-fp34
- CGA-f8g8-64vm-chr9
- CGA-fvfj-m226-r2jv
- CGA-g5fg-f8g3-6j42
- CGA-hjw5-p394-wxm4
- CGA-jf23-6x48-wcpm
- CGA-qwf8-c766-mp37
- CGA-v73g-hj64-x522
- CGA-vr9g-f73r-792c
- CGA-wvjp-fwqv-mx56
- CGA-x4mw-38jr-4q5v
- CGA-xpqx-5jmw-g35q