
CVE catalog
CVE-2025-24359
python-asteval: CVE-2025-24359
- Severity
- High · CVSS 8.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.28% · Oct 25, 2026
ASTEVAL is an evaluator of Python expressions and statements. Prior to version 1.0.6, if an attacker can control the input to the `asteval` library, they can bypass asteval's restrictions and execute arbitrary Python code in the context of the application using the library. The vulnerability is rooted in how `asteval` performs handling of `FormattedValue` AST nodes. In particular, the `on_formattedvalue` value uses the dangerous format method of the str class. The code allows an attacker to manipulate the value of the string used in the dangerous call `fmt.format(__fstring__=val)`. This vulnerability can be exploited to access protected attributes by intentionally triggering an `AttributeError` exception. The attacker can then catch the exception and use its `obj` attribute to gain arbitrary access to sensitive or protected object properties. Version 1.0.6 fixes this issue.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-asteval | sid | 1.0.6-2 | fixed |
| Debian | python-asteval | forky | 1.0.6-2 | fixed |
| Debian | python-asteval | trixie | 1.0.6-2 | fixed |
| Debian | python-asteval | bookworm | 0.9.28-1 | vulnerable |
| Opensuse | python-asteval | tumbleweed | 1.0.6-1.1 | fixed |
| Suse | python-asteval | package hub 15 sp6 | 1.0.6-bp156.4.3.1 | fixed |
| Opensuse | python-asteval | leap 15.6 | 1.0.6-bp156.4.3.1 | fixed |
| Ubuntu | python-asteval | 20.04 | 0.9.12-1 | vulnerable |
| Ubuntu | python-asteval | 20.04 | 0.9.12-2 | vulnerable |
| Ubuntu | python-asteval | 20.04 | 0.9.17-1 | vulnerable |
| Ubuntu | python-asteval | 22.04 | 0.9.19-2 | vulnerable |
| Ubuntu | python-asteval | 22.04 | 0.9.25-2 | vulnerable |
| Ubuntu | python-asteval | 24.04 | 0.9.30-1 | vulnerable |
| Ubuntu | python-asteval | 24.04 | 0.9.31-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-asteval | source | sid | 1.0.6-2 | not yet assigned | Not reported | [1095031] |
| Debian | python-asteval | source | forky | 1.0.6-2 | not yet assigned | Not reported | [1095031] |
| Debian | python-asteval | source | trixie | 1.0.6-2 | not yet assigned | Not reported | [1095031] |
| Debian | python-asteval | source | bookworm | (unfixed) | not yet assigned | Not reported | [1095031] |
| Opensuse | python-asteval | rpm | tumbleweed | 1.0.6-1.1 | Not reported | OPENSUSE-SU-2025:14701-1 | Not reported |
| Suse | python-asteval | rpm | package hub 15 sp6 | 1.0.6-bp156.4.3.1 | Not reported | OPENSUSE-SU-2025:0052-1 | Not reported |
| Opensuse | python-asteval | rpm | leap 15.6 | 1.0.6-bp156.4.3.1 | Not reported | OPENSUSE-SU-2025:0052-1 | Not reported |
Notes
[bookworm] python-asteval: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-asteval]Affected
Source package: [python-asteval]
Details (2)
0.9.28-1· all · bookwormAffected
dsa · python-asteval · debian · bookworm; dsa · python-asteval · debian · 12
0.9.28-1· all · bookwormAffected
dsa · python-asteval · debian · bookworm; dsa · python-asteval · debian · 12
[openSUSE Tumbleweed]
- [python313-asteval]Unknown
Source package: [python-asteval]
Details (1)
1.0.9-1.1· noarch · tumbleweedUnknown · Fixed:
1.0.6-1.1Version impact unknown
dsa · python-asteval · opensuse · tumbleweed
- [python314-asteval]Unknown
Source package: [python-asteval]
Details (1)
1.0.9-1.1· noarch · tumbleweedUnknown · Fixed:
1.0.6-1.1Version impact unknown
dsa · python-asteval · opensuse · tumbleweed
[Debian 13 (Trixie)]
- [python3-asteval]Fixed
Source package: [python-asteval]
Details (2)
1.0.6-2· all · trixieFixed · Fixed:
1.0.6-2dsa · python-asteval · debian · 13
1.0.6-2· all · trixieFixed · Fixed:
1.0.6-2dsa · python-asteval · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2025_0052-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-24359]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-24359]
- [https://osv.dev/vulnerability/openSUSE-SU-2025:0052-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2025:14701-1]
- [https://security-tracker.debian.org/tracker/CVE-2025-24359]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-24359.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]