CVE-2025-24359
published high CVSS 3.1 · 8.4ASTEVAL Vulnerable to Maliciously Crafted Format Strings Leading to Sandbox Escape
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| lmfit | — | asteval< 1.0.6 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-astevalnoarch | Advisory build | 1.0.6-bp156.4.3.1 | OPENSUSE-SU-2025:0052-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-astevalaarch64 | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-astevalppc64le | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-astevals390x | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-astevalx86_64 | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-astevalaarch64 | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-astevalppc64le | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-astevals390x | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-astevalx86_64 | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-astevalaarch64 | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-astevalppc64le | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-astevals390x | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-astevalx86_64 | Advisory build | 1.0.6-1.1 | OPENSUSE-SU-2025:14701-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lmfit | asteval | < 1.0.6 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-134 CWE-134: Use of Externally-Controlled Format String
- CWE-749 CWE-749: Exposed Dangerous Method or Function
References
3Provider assertions
2GitHub_M · cna
ASTEVAL Vulnerable to Maliciously Crafted Format Strings Leading to Sandbox Escape
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- bbc1f5fde361bb99ac3bbca2817510f2f8d5c850a824e3a70c33d9d124cbe9c2
- Ingested
- 23 Sep 2026, 08:41:20 UTC
- Source record
- Official CVE record