Intel

AIKIDO-2025-10170

anyio is vulnerable to Race Condition

Race Condition Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 20, 2025

66

Medium Risk

This Affects:

PYTHONanyio
1.0.0 - 4.3.0
Fixed in 4.4.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a race condition in _eventloop.get_asynclib(), which can cause crashes when multiple event loops of the same backend run in separate threads and simultaneously attempt to use anyio for the first time. This issue can lead to unexpected application failures and instability in multi-threaded environments.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

anyio is vulnerable to Race Condition in versions 1.0.0 - 4.3.0.

How to fix this

Upgrade the anyio library to the patch version.