AnyIO
AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
AnyIO is a high level asynchronous concurrency and networking framework that works on top of either Trio or asyncio. Prior to 4.14.2, connect_tcp() and TLSStream.wrap() can validate internationalized host names after the standard library converts them with IDNA 2003 instead of IDNA 2008. When a connection to a non-ASCII domain is hijacked or redirected, an attacker can obtain a legitimate certificate for the different ASCII hostname produced by IDNA 2003 and present it to the client, causing the malicious endpoint's certificate to validate. This issue is fixed in version 4.14.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.14.2
Fixed in 4.14.2
Mitigation
Upgrade anyio to 4.14.2 or later.
References
- Vendor advisory github.com/agronholm/anyio/security/advisories…
- Patch github.com/agronholm/anyio/pull/1208
- Patch github.com/agronholm/anyio/commit/68f58915f82d…
1 more
- Release notes github.com/agronholm/anyio/releases/tag/4.14.2
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.