{"id":"CVE-2026-31235","aliases":["CVE-2026-31235","GHSA-g82g-j283-hj97","PYSEC-2026-356"],"related":[],"kind":"vulnerability","state":"published","title":"imgaug contains an insecure deserialization vulnerability in BackgroundAugmenter class within multicore.py module","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-05-12T00:00:00.000Z","modified":"2026-10-27T17:27:43.511Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.4.0"}],"ecosystem":"PyPI","package":"imgaug","purl":"pkg:pypi/imgaug","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.4.0"}],"ecosystem":"PyPI","package":"imgaug","purl":"pkg:pypi/imgaug","source":"pysec"}],"references":[{"url":"https://github.com/aleju/imgaug","tags":["package"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.notion.so/CVE-2026-31235-35d1e139318881efb701d814228424a9","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31235","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/imgaug/PYSEC-2026-356.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/imgaug","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-g82g-j283-hj97","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-14T17:06:09.494Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31235","url":"https://www.cve.org/CVERecord?id=CVE-2026-31235","licence":"CVE Terms of Use","modified":"2026-05-14T19:54:30.058Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g82g-j283-hj97","url":"https://github.com/advisories/GHSA-g82g-j283-hj97","licence":"CC-BY-4.0","modified":"2026-10-27T17:27:43.511Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31235","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31235","licence":"Public domain","modified":"2026-06-17T10:33:29.250Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-356","url":"https://osv.dev/vulnerability/PYSEC-2026-356","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:54.401Z"}],"updatedAt":"2026-11-25T22:59:21.388Z","epss":{"score":0.00473,"percentile":0.42481,"date":"2026-12-01T12:00:22.000Z"}}