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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-asteval | No fix yet | — |
| Debian 13 | python-asteval | No fix yet | — |
| Debian 12 | python-asteval | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-asteval | 1.0.9-1.1 | openSUSE-SU-2026:11420-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | checkov | 3.3.16-r2 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | asteval | < 1.0.9 | 1.0.9 | GHSA-89v8-rhwq-hf77 |
Advisories 1
- openSUSE-SU-2026:11420-1 python313-asteval-1.0.9-1.1 on GA media SUSE / openSUSE Security Updates · Aug 2, 2026
References
- https://github.com/lmfit/asteval/security/advisories/GHSA-89v8-rhwq-hf77
- https://github.com/lmfit/asteval/pull/153
- https://github.com/lmfit/asteval/commit/9c625b3674f8d05f206708bb85afca17a87694a4
- https://github.com/lmfit/asteval/commit/c49c99a67acb63eb7410231932250bd820380e45
- https://github.com/lmfit/asteval/releases/tag/1.0.9