Description
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to 49.0.0, if an intermediate constrained CA permits the DNS name foo.example.com, and the leaf certificate has a wildcard in its DNS SAN of *.example.com, python-cryptography's verifier accepts which allows escaping outside of the permitted names. The core issue is in DNSConstraint::matches, where a wildcard pattern was treated as matching a more-specific permitted constraint even though *.example.com can expand to sibling names such as bar.example.com outside foo.example.com. This allows acceptance of an invalid certificate chain. This issue is fixed in 49.0.0.
Mitigation
Minimal update. May introduce new vulnerabilities or breaking changes.
|
 pypi | | | 49.0.0 |
 debian 11 | | =3.3.2-1 || =3.3.2-1+deb11u1 || =3.4.8-1 || =3.4.8-2 || =38.0.4-1 || =38.0.4-2 || =38.0.4-3 || =38.0.4-3~deb12u1 || =38.0.4-4 || =41.0.7-1 || =41.0.7-2 || =41.0.7-3 || =41.0.7-4 || =41.0.7-5 || =42.0.5-1 || =42.0.5-2 || =43.0.0-1 || =43.0.0-2 || =43.0.0-3 || =44.0.2-1 || =44.0.2-2 || =45.0.6-1 || =45.0.6-1~exp1 || =45.0.7-1 || =46.0.1-1 || =46.0.1-1~exp1 || =46.0.5-1 || =46.0.5-2 || =46.0.6-1 || =46.0.7-1 || =47.0.0-1 || =49.0.0-1 || =49.0.0-1~exp1 || =49.0.0-2 | - |
 debian 12 | | =38.0.4-3 || =38.0.4-3+deb12u1 || =38.0.4-4 || =41.0.7-1 || =41.0.7-2 || =41.0.7-3 || =41.0.7-4 || =41.0.7-5 || =42.0.5-1 || =42.0.5-2 || =43.0.0-1 || =43.0.0-2 || =43.0.0-3 || =44.0.2-1 || =44.0.2-2 || =45.0.6-1 || =45.0.6-1~exp1 || =45.0.7-1 || =46.0.1-1 || =46.0.1-1~exp1 || =46.0.5-1 || =46.0.5-2 || =46.0.6-1 || =46.0.7-1 || =47.0.0-1 || =49.0.0-1 || =49.0.0-1~exp1 || =49.0.0-2 | - |
 debian 13 | | =43.0.0-3 || =43.0.0-3+deb13u1 || =44.0.2-1 || =44.0.2-2 || =45.0.6-1 || =45.0.6-1~exp1 || =45.0.7-1 || =46.0.1-1 || =46.0.1-1~exp1 || =46.0.5-1 || =46.0.5-2 || =46.0.6-1 || =46.0.7-1 || =47.0.0-1 || =49.0.0-1 || =49.0.0-1~exp1 || =49.0.0-2 | - |
 debian 14 | | =43.0.0-3 || =44.0.2-1 || =44.0.2-2 || =45.0.6-1 || =45.0.6-1~exp1 || =45.0.7-1 || =46.0.1-1 || =46.0.1-1~exp1 || =46.0.5-1 || =46.0.5-2 || =46.0.6-1 || =46.0.7-1 || =47.0.0-1 || =49.0.0-1~exp1 || >=0 <49.0.0-1 | 49.0.0-1 |
 rpm rhel10 | | - | - |
 rpm rhel10 | | - | - |
 rpm rhel10 | | - | - |
 rpm rhel10 | | - | - |