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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-05-12T00:00:00.000Z
- Modified: 2026-10-27T17:27:43.511Z
- Also known as: GHSA-g82g-j283-hj97, PYSEC-2026-356
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- imgaug (PyPI): up to 0.4.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/aleju/imgaug> (package)
- <https://www.notion.so/CVE-2026-31235-35d1e139318881efb701d814228424a9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31235> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/imgaug/PYSEC-2026-356.yaml> (web)
- <https://pypi.org/project/imgaug> (package, web)
- <https://github.com/advisories/GHSA-g82g-j283-hj97> (advisory)

## Sources

- CVE List: [CVE-2026-31235](https://www.cve.org/CVERecord?id=CVE-2026-31235), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-g82g-j283-hj97](https://github.com/advisories/GHSA-g82g-j283-hj97), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-31235](https://nvd.nist.gov/vuln/detail/CVE-2026-31235), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-356](https://osv.dev/vulnerability/PYSEC-2026-356), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-31235 · Whole record: https://cve.day/CVE-2026-31235.json · Rebuilt by cve.day 2026-11-25T22:59:21.388Z
