REDHAT-BUG-2453276: Low severity pypi/cryptography vulnerability

Published Mar 31, 2026
·
Updated

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to version 46.0.6, DNS name constraints were only validated against SANs within child certificates, and not the "peer name" presented during each validation. Consequently, cryptography would allow a peer named bar.example.com to validate against a wildcard leaf certificate for .example.com, even if the leaf's parent certificate (or upwards) contained an excluded subtree constraint for bar.example.com. This issue has been patched in version 46.0.6.

Affected Software

1 affected component
pypi/cryptography<46.0.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 46.0.6

Event History

Mar 31, 2026
Data Sourced
via Red Hat·03:01 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using the PyPI cryptography package before version 46.0.6 may be affected when they validate certificate chains with DNS name constraints. The problematic case involves a wildcard leaf certificate and an excluded DNS subtree in a parent certificate.

2

What conditions are needed for exploitation?

A peer must be presented as a DNS name that falls under an excluded subtree, such as bar.example.com, while the certificate chain uses a wildcard leaf certificate such as *.example.com. A parent certificate in the chain must contain the relevant excluded subtree constraint.

3

What should be done to remediate the issue?

Upgrade cryptography to version 46.0.6 or later, which patches DNS name-constraint validation to check the peer name as well as certificate SANs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203