CVE-2026-31235 imgaug contains an insecure deserialization vulnerability in BackgroundAugmenter class within multicore.py module

Critical 9.8 Published Updated

An attacker can execute arbitrary code by providing malicious pickle data to the imgaug library's multiprocessing queue.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-31235?

CVE-2026-31235 is a critical unsafe deserialization vulnerability in n/a, published on 12 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The imgaug library thru 0.4.0 contains an insecure deserialization vulnerability in its BackgroundAugmenter class within the multicore.py module. The class uses Python's pickle module to deserialize data received via a multiprocessing queue in the _augment_images_worker() method without any safety checks. An attacker who can influence the data placed into this queue (e.g., through social engineering, malicious input scripts, or a compromised shared queue) can provide a malicious pickle payload. When deserialized, this payload can execute arbitrary code in the context of the worker process, leading to remote or local code execution depending on the deployment scenario.

Weakness: CWE-502

Which versions are affected by CVE-2026-31235?

3 open source packages ship an affected version, including imgaug.

PackageAffectedFixed in
imgaug PyPIAll versions to 0.4.0None
imgaug PyPIAll versions to 0.4.0None
imgaug PyPIAll versions to 0.4.0None

How do I fix CVE-2026-31235?

No fix has been published for CVE-2026-31235 yet. Limit exposure of the affected software until one is available.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2026-31235 being exploited?

There is no known exploitation of CVE-2026-31235 in the wild and no public exploit code.

Sources

Also known as GHSA-g82g-j283-hj97, PYSEC-2026-356.

Is CVE-2026-31235 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free