8.4

CVE-2025-24359: ASTEVAL Vulnerable to Maliciously Crafted Format Strings Leading to Sandbox Escape

Deferred
AliasesopenSUSE-SU-2025:0052-1GHSA-3wwr-3g9f-9gc7PYSEC-2026-1195
Published 24-01-2025Last modified 12-02-2025

Vulnerability summary

CVE-2025-24359 is a high (CVSS 8.4) vulnerability in lmfit asteval. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 20.3% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.4, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.4/10
010
High · v3.1 (CVE.org)
EPSS score
0.28%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 24-01-2025
    PublishedVulnerability first disclosed.
  2. 12-02-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.28%

Chance of exploitation in the next 30 days

Percentile

20%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.28% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Opensuse2 products
  • python-asteval&distro=openSUSE Leap 15.6< 1.0.6-bp156.4.3.1
  • python-asteval&distro=openSUSE Tumbleweed< 1.0.6-1.1
Debian1 product
  • python-astevalAll versions (No fix recorded) | < 1.0.6-2
Lmfit1 product
PyPI1 product
  • asteval< 1.0.6
Suse1 product
  • python-asteval&distro=SUSE Package Hub 15 SP6< 1.0.6-bp156.4.3.1
Ubuntu1 product
  • python-astevalAll versions (No fix recorded)

6 vendors · 7 products

References

15 links
Show all 15 references