GHSA-44vg-5wv2-h2hg

Suggest an improvement
Source
https://github.com/advisories/GHSA-44vg-5wv2-h2hg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-44vg-5wv2-h2hg/GHSA-44vg-5wv2-h2hg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-44vg-5wv2-h2hg
Aliases
Published
2026-03-13T20:56:26Z
Modified
2026-05-20T08:11:36.588899957Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
SimpleEval: Objects (including modules) can leak dangerous modules through to direct access inside the sandbox
Details

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)

Database specific
{
    "cwe_ids": [
        "CWE-915",
        "CWE-94"
    ],
    "github_reviewed_at": "2026-03-13T20:56:26Z",
    "nvd_published_at": "2026-03-16T14:19:40Z",
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

PyPI / simpleeval

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.5

Affected versions

0.*
0.8.1
0.8.2
0.8.5
0.8.6
0.8.7
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
0.9.5
0.9.6
0.9.7
0.9.8
0.9.10
0.9.11
0.9.12
0.9.13
1.*
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"