# CVE-2026-55244: ASTEVAL: Sandbox Escape via BaseException Subclasses

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.0
- **CVSS:** 5.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-248
- **Aliases:** GHSA-89v8-rhwq-hf77, PYSEC-2026-3807
- **Published:** 2026-08-20T17:28:52.000Z
- **Modified:** 2026-09-30T17:51:56.193Z

## Who should check

- Projects that depend on PyPI package asteval (\< 1.0.9)
- Anyone running lmfit asteval \< 1.0.9

## Description

ASTEVAL is an evaluator of Python expressions and statements. Prior to 1.0.9, FROM\_PY in asteval/astutils.py exposes BaseException, SystemExit, KeyboardInterrupt, and GeneratorExit to expressions evaluated by asteval.Interpreter.eval(), while run() and eval() in asteval/asteval.py catch Exception rather than these non-Exception BaseException subclasses. When an attacker-controlled expression raises one of these classes, on\_raise() passes the class to raise\_exception(), and the resulting exception bypasses the interpreter's safety handlers and propagates into the calling application. A consuming service that evaluates untrusted expressions can therefore be terminated or have signal and cleanup handling disrupted, causing denial of service. The separately documented read-only open() capability is not part of this vulnerability. This issue is fixed in version 1.0.9.

## Affected and fixed versions

- PyPI `asteval`: affected \< 1.0.9; fixed 1.0.9 (osv)
- lmfit asteval: \< 1.0.9 (cvelist)

## Mitigation

- Upgrade asteval to 1.0.9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-55244. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-55244.md
Affected: asteval < 1.0.9
Fixed in: 1.0.9

Steps:
1. Search this machine and project for asteval (PyPI), lmfit asteval: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-55244 being exploited?

There is no confirmed exploitation: CVE-2026-55244 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-55244?

Medium: CVSS 5.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-55244?

asteval \< 1.0.9.

### Is there a fix for CVE-2026-55244?

Yes. Fixed in 1.0.9. Upgrade asteval to 1.0.9 or later.

### How do I check if I'm affected by CVE-2026-55244?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/lmfit/asteval/security/advisories/GHSA-89v8-rhwq-hf77>
- vendor: <https://github.com/advisories/GHSA-89v8-rhwq-hf77>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-55244>
- patch: <https://github.com/lmfit/asteval/pull/153>
- patch: <https://github.com/lmfit/asteval/commit/9c625b3674f8d05f206708bb85afca17a87694a4>
- patch: <https://github.com/lmfit/asteval/commit/c49c99a67acb63eb7410231932250bd820380e45>
- patch: <https://github.com/lmfit/asteval/commit/a3e56e7f8ed567a4817684d94213b290359077b4>
- other: <https://github.com/lmfit/asteval/releases/tag/1.0.9>
- other: <https://github.com/lmfit/asteval>
- other: <https://pypi.org/project/asteval>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-55244>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-89v8-rhwq-hf77> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-3807> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-55244> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-55244>
