anyio is vulnerable to Improper Certificate Validation
93
CVE Score
Critical
Improper Certificate Validation
TLSStream.wrap() in anyio resolves internationalized hostnames using IDNA 2003 instead of IDNA 2008. Because the two standards map some Unicode labels to different ASCII encodings, the hostname passed to wrap_bio for certificate validation can differ from the hostname the caller intended. A TLS certificate issued for the IDNA 2008 encoding of a hostname can therefore fail validation against an IDNA 2003-encoded peer, and conversely a certificate for a different host under the IDNA 2003 mapping may be accepted as valid. The fix introduces idna2008_resolve() and uses the corrected server_hostname in wrap_bio.
Upgrade the anyio library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application uses TLSStream.wrap() with internationalized (non-ASCII) hostnames.
0.0.1 - 4.14.1
Fixed in 4.14.2anyio is vulnerable to Improper Certificate Validation in versions 0.0.1 - 4.14.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.