Skip to content
OpenAdvisories
Medium · 5.0 CVE-2026-55244 EUVD-2026-78058GHSA-89v8-rhwq-hf77PYSEC-2026-3807

ASTEVAL: Sandbox Escape via BaseException Subclasses

Published Sep 14, 2026 · Updated Sep 16, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
lmfit asteval < 1.0.9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-asteval No fix yet —
Debian 13 python-asteval No fix yet —
Debian 12 python-asteval No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-asteval No fix yet —
Ubuntu 26.04 LTS python-asteval No fix yet —
Ubuntu 24.04 LTS python-asteval No fix yet —
Ubuntu 22.04 LTS python-asteval No fix yet —
Ubuntu 20.04 LTS python-asteval No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-asteval 1.0.9-1.1 openSUSE-SU-2026:11420-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling checkov 3.3.16-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI asteval < 1.0.9 1.0.9 GHSA-89v8-rhwq-hf77

Advisories 1

References