Tóm tắt nhanh
- CVE-2024-26130 là lỗ hổng mức CAO (CVSS 7.5) ảnh hưởng cryptography, cryptography (cryptography.io).
- Xác suất bị khai thác trong 30 ngày tới (EPSS): 0.83%, cao hơn 57.6% các lỗ hổng khác.
- Cách xử lý: cập nhật lên 42.0.4 hoặc mới hơn.
| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|
| cryptography PyPI | ≥ 38.0.0, < 42.0.4
| 42.0.4
|
| cryptography | ≥ 38.0.0, < 42.0.4
| 42.0.4
|
Mô tả
If pkcs12.serialize_key_and_certificates is called with both:
- A certificate whose public key did not match the provided private key
- 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, and now a ValueError is properly raised.
Patched in https://github.com/pyca/cryptography/pull/10423
Mô tả của NVD
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.
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí