Intel

AIKIDO-2026-418522

wrapt is vulnerable to Race Condition

Race Condition Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

58

Medium Risk

This Affects:

PYTHONwrapt
1.17.0 - 2.3.0
Fixed in 2.4.0
Are you affected? Scan for Free

TL;DR

The C extension object proxy in wrapt swaps internal fields such as the wrapped object without serializing the update. On free-threaded Python builds, where the package opts out of the global interpreter lock, two threads that concurrently mutate the same shared proxy can both release the previous value, and borrowed references in the proxy, operator, delegation, and wrapper-call paths can be used after another thread frees them. This double release and use-after-free corrupts interpreter memory and typically crashes the process. The fix serializes the field swaps with per-object critical sections and acquires strong references across the affected paths.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run on a free-threaded Python build where the same object proxy is mutated concurrently from multiple threads.

Background info

wrapt is vulnerable to Race Condition in versions 1.17.0 - 2.3.0.

How to fix this

Upgrade the wrapt library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform