Improper resource allocation In python-cryptography
Description
python-cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In versions 42.0.0 through 48.0.0, when resolving invalid certificate chains that include duplicate copies of self-signed certificates, the processing recursively invokes the same candidate, leading to an exponential blowup. Although the limitation that the chain depth cannot exceed a specified maximum depth prevents unbounded recursion and guarantees termination, an attacker-controlled certificate chain can lead the processing to easily take more than 5s to reject in testing. This amplification could form the basis for a resource exhaustion denial of service attack. The core issue arises in the recursive nature of build_chain_inner, which does not de-duplicate against previously analyzed candidates. As the correctness of validation is not affected, the integrity of a system cannot be compromised through this vector, only its availability. This issue is fixed in 49.0.0.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
rpm rhel10 | 0:43.0.0-4.el10_2.5 | ||
rpm rhel10 | 0:45.0.4-4.el10_2.5 | ||
rpm rhel10.0 | 0:43.0.0-4.el10_0.1 | ||
pypi | 49.0.0 | ||
debian 13 | - | ||
debian 14 | 49.0.0-1 | ||
debian 12 | - | ||
rpm rhel9 | 0:45.0.4-4.el9_8.6 |
Aliases
References