CVE-2026-32640

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

Published Mar 13, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
SimpleEval is a library for adding evaluatable expressions into python projects. Prior to 1.0.5, objects (including modules) can leak dangerous modules through to direct access inside the sandbox. If the objects you've 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. The latest version 1.0.5 has this issue fixed. This vulnerability is fixed in 1.0.5.

Analysis

AI-generated

Technical impact

SimpleEval is a lightweight library that evaluates Python expressions supplied by users. Prior to version 1.0.5, its sandbox allowed objects—such as modules—that were passed in as names to be exposed as attributes within the evaluation context. This flaw means that an attacker can reference potentially dangerous modules or functions that the library itself deems disallowed, effectively permitting execution of arbitrary code with the privileges of the host application. The weakness is reflected in CWE‑915 (Code Injection) and CWE‑94 (Code Injection via Dynamic Untrusted Input).

Affected Systems

The vulnerability affects the danthedeckie:simpleeval package for all releases before 1.0.5. Any installation of SimpleEval older than 1.0.5 that receives untrusted expressions is vulnerable.

Risk and Exploitability

The CVE has a CVSS score of 8.7, indicating high severity, while the EPSS score is below 1% and the flaw is not listed in the CISA KEV catalog, suggesting a relatively low probability of widespread exploitation. The likely attack vector is an application embedding SimpleEval and processing user‑supplied expressions; from that point an attacker can craft an expression that accesses disallowed modules or functions, leading to remote code execution. The attacker does not need additional privileges beyond those of the running application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SimpleEval to version 1.0.5 or later

Generated by OpenCVE AI on March 18, 2026 at 20:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4543-1 simpleeval security update
Debian DSA Debian DSA DSA-6220-1 simpleeval security update
Github GHSA Github GHSA GHSA-44vg-5wv2-h2hg SimpleEval: Objects (including modules) can leak dangerous modules through to direct access inside the sandbox
Ubuntu USN Ubuntu USN USN-8301-1 SimpleEval vulnerability
History
Type Values Removed Values Added
CPEs cpe:2.3:a:danthedeckie:simpleeval:*:*:*:*:*:python:*:*
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Danthedeckie
Danthedeckie simpleeval
Vendors & Products Danthedeckie
Danthedeckie simpleeval
Type Values Removed Values Added
Description SimpleEval is a library for adding evaluatable expressions into python projects. Prior to 1.0.5, objects (including modules) can leak dangerous modules through to direct access inside the sandbox. If the objects you've 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. The latest version 1.0.5 has this issue fixed. This vulnerability is fixed in 1.0.5.
Title (SimpleEval) Objects (including modules) can leak dangerous modules through to direct access inside the sandbox.
Weaknesses CWE-915
CWE-94
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses
  • CWE-915

    Improperly Controlled Modification of Dynamically-Determined Object Attributes

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 1:07 AM
Reserved
Mar 12, 2026, 3:29 PM
Status
Modified
Published
Mar 16, 2026, 2:19 PM
Modified
Jul 15, 2026, 2:19 AM
Severity
Important
Public date
Mar 13, 2026, 9:03 PM