CVE-2025-24359 in Class products
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 `asteva...
Affects 0 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-24359 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-043503-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2025-01-24 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-134: CWE-134
CWE-749: CWE-749
Related attack patterns (CAPEC)
CAPEC-67 String Format Overflow in syslog() via CWE-134
CAPEC-500 WebView Injection via CWE-749
CAPEC-135 Format String Injection via CWE-134
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2025-24359 affects ASTEVAL versions prior to 1.0.6, allowing attackers to execute arbitrary Python code if they can control the input to the library.
The vulnerability is due to improper handling of `FormattedValue` AST nodes in ASTEVAL, enabling attackers to bypass restrictions and execute arbitrary code.
Questions
What is CVE-2025-24359?
CVE-2025-24359 affects ASTEVAL versions prior to 1.0.6, allowing attackers to execute arbitrary Python code if they can control the input to the library.
What is the CVSS score for CVE-2025-24359?
CVE-2025-24359 has CVSS 8.4 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.4%.
Is CVE-2025-24359 actively exploited?
No confirmed active exploitation of CVE-2025-24359 as of 2026-09-25.
How do I remediate CVE-2025-24359?
Priority: IMMEDIATE.
What systems are affected by CVE-2025-24359?
CVE-2025-24359 affects Class; Python.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Class","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.