imgaug contains an insecure deserialization vulnerability in BackgroundAugmenter class within multicore.py module
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
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.
Text from CVE List
Affected versions 14
- imgaug, pip<= 0.4.0GitHub
- n/aaffected: n/aCVE List
- imgaug, PyPIfrom first release, through 0.4.0OSV
- imgaug, PyPI0.2.0OSV
- imgaug, PyPI0.2.1OSV
- imgaug, PyPI0.2.3OSV
- imgaug, PyPI0.2.4OSV
- imgaug, PyPI0.2.5OSV
- imgaug, PyPI0.2.6OSV
- imgaug, PyPI0.2.7OSV
- imgaug, PyPI0.2.8OSV
- imgaug, PyPI0.2.9OSV
- imgaug, PyPI0.3.0OSV
- imgaug, PyPI0.4.0OSV
References 6
- github.com/pypa/advisory-database/tree/main/vulns/imgaug/PYSEC-2026-356.yamlAdvisoryvia GitHub
- github.com/advisories/GHSA-g82g-j283-hj97Advisoryvia GitHub
- nvd.nist.gov/vuln/detail/CVE-2026-31235Referencevia GitHub
- notion.so/CVE-2026-31235-35d1e139318881efb701d814228424a9Referencevia CVE List
- pypi.org/project/imgaugReferencevia GitHub
- github.com/aleju/imgaugReferencevia CVE List