{"id":"GHSA-44vg-5wv2-h2hg","summary":"SimpleEval: Objects (including modules) can leak dangerous modules through to direct access inside the sandbox","details":"### Impact\nIf the objects passed in as `names` to SimpleEval have modules or other disallowed / dangerous objects available as attrs.\nAdditionally, dangerous functions or modules could be accessed by passing them as callbacks to other safe functions to call.\n\nExamples (found by @ByamB4):\n\nAny module where non-underscore attribute chains reach os or sys:\n- os.path, pathlib, shutil, glob (direct .os / .sys attributes)\n- statistics (has .sys)\n- numpy (has .ctypeslib.os and .f2py.sys)\n- urllib.parse (has .warnings.sys)\n\n### Patches\nThe latest version 1.0.5 has this issue fixed.\n\n### Workarounds\nDon't pass in objects or modules which have direct attributes to potentially dangerous items.\nUse a wrapper to wrap the potentially vulnerable items (See the ModuleWrapper in version 1.0.5)","aliases":["CVE-2026-32640","PYSEC-2026-132"],"modified":"2026-06-08T20:00:14.398721768Z","published":"2026-03-13T20:56:26Z","database_specific":{"github_reviewed_at":"2026-03-13T20:56:26Z","nvd_published_at":"2026-03-16T14:19:40Z","cwe_ids":["CWE-915","CWE-94"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/danthedeckie/simpleeval/security/advisories/GHSA-44vg-5wv2-h2hg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32640"},{"type":"PACKAGE","url":"https://github.com/danthedeckie/simpleeval"},{"type":"WEB","url":"https://github.com/danthedeckie/simpleeval/releases/tag/1.0.5"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/simpleeval/PYSEC-2026-132.yaml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2026/04/msg00023.html"}],"affected":[{"package":{"name":"simpleeval","ecosystem":"PyPI","purl":"pkg:pypi/simpleeval"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5"}]}],"versions":["0.8.1","0.8.2","0.8.5","0.8.6","0.8.7","0.9.0","0.9.1","0.9.10","0.9.11","0.9.12","0.9.13","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-44vg-5wv2-h2hg/GHSA-44vg-5wv2-h2hg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}]}