Skip to main content

CVE-2026-32640 — Vulnerability in simpleeval — CVE Details

HIGH

SimpleEval: Objects (including modules) can leak dangerous modules through to direct access inside the sandbox

Published March 13, 2026Updated June 8, 2026Source: OSV

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.

Check my requirements.txt

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
Update simpleeval to 1.0.5 or later
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).

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

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.99%
EPSS percentile: 61.4

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

GHSA-44vg-5wv2-h2hg
PYSEC-2026-132

Related CVEs

  • CVE-2026-128139
    HIGH

    NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service

  • CVE-2026-129222
    HIGH

    Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt