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

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 (213 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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: pypi (1).

PackageEcosystemAffectedFixed In
simpleeval
pypi
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. 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

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

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

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies