Imgaug Contains an Insecure Deserialization Vulnerability
Affects imgaugSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical.
Data as of 27 Oct 2026, 18:29 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIimgaug | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, avoid using imgaug in environments where untrusted users can influence the multiprocessing queue data. Consider isolating or sandboxing processes using BackgroundAugmenter to limit potential impact. Do not deserialize pickle data from untrusted sources. Monitor official imgaug channels for updates or patches addressing this vulnerability.
Description
The imgaug library version 0.4.0 and earlier contains an insecure deserialization vulnerability in the BackgroundAugmenter class within the multicore.py module. This vulnerability arises because the class uses Python's pickle module to deserialize data from a multiprocessing queue without validation. An attacker able to influence the queue's data can supply a malicious pickle payload that executes arbitrary code in the worker process context. This can lead to remote or local code execution depending on how the library is deployed.
References
- nvd.nist.gov/vuln/detail/CVE-2026-31235 (opens in a new tab)
- github.com/aleju/imgaug (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/imgaug/PYSEC-2026-356.yaml (opens in a new tab)
- pypi.org/project/imgaug (opens in a new tab)
- notion.so/CVE-2026-31235-35d1e139318881efb701d814228424a9 (opens in a new tab)