CVE-2026-32640 — Vulnerability in simpleeval — CVE Details
SimpleEval: Objects (including modules) can leak dangerous modules through to direct access inside the sandbox
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.99%). Schedule for your next planned update.
Does your project use an affected simpleeval version?
Paste your requirements.txt to check it for CVE-2026-32640 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
If the objects passed in as names to SimpleEval have modules or other disallowed / dangerous objects available as attrs.
Additionally, dangerous functions or modules could be accessed by passing them as callbacks to other safe functions to call.
Examples (found by @ByamB4):
Any module where non-underscore attribute chains reach os or sys:
- os.path, pathlib, shutil, glob (direct .os / .sys attributes)
- statistics (has .sys)
- numpy (has .ctypeslib.os and .f2py.sys)
- urllib.parse (has .warnings.sys)
Patches
The latest version 1.0.5 has this issue fixed.
Workarounds
Don't pass in objects or modules which have direct attributes to potentially dangerous items. Use a wrapper to wrap the potentially vulnerable items (See the ModuleWrapper in version 1.0.5)
Advisory Timeline
- First published March 13, 2026 (258 days ago).
- Last revised June 8, 2026 — 87 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "simpleeval>=1.0.5"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| simpleeval PyPI · Affected: 0.8.1, 0.8.2, 0.8.5, 0.8.6 (+19 more) | 1.0.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-915
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/danthedeckie/simpleeval/security/advisories/GHSA-44vg-5wv2-h2hgWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-32640ADVISORY
- https://github.com/danthedeckie/simpleevalPACKAGE
- https://github.com/danthedeckie/simpleeval/releases/tag/1.0.5WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/simpleeval/PYSEC-2026-132.yamlWEB
- https://lists.debian.org/debian-lts-announce/2026/04/msg00023.htmlWEB
Frequently Asked Questions
- What is CVE-2026-32640?
- SimpleEval: Objects (including modules) can leak dangerous modules through to direct access inside the sandbox. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-32640?
- CVE-2026-32640 affects simpleeval. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-32640 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 61.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-128139HIGH
NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service
- CVE-2026-129222HIGH
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()