PT-2025-5341 · Asteval+1 · Asteval+1

Steakenthusiast

·

Published

2025-01-24

·

Updated

2025-12-23

·

CVE-2025-24359

CVSS v3.1

8.4

High

VectorAV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions asteval versions prior to 1.0.6
Description The issue is rooted in how asteval performs handling of FormattedValue AST nodes, specifically the on formattedvalue value using the dangerous format method of the str class. This allows an attacker to manipulate the value of the string used in the dangerous call fmt.format( fstring =val). The vulnerability can be exploited to access protected attributes by intentionally triggering an AttributeError exception, then catching the exception and using its obj attribute to gain arbitrary access to sensitive or protected object properties.
Recommendations For versions prior to 1.0.6, update to version 1.0.6 to fix the issue. As a temporary workaround, consider restricting the input to the asteval library to prevent manipulation of the FormattedValue AST nodes. Additionally, avoid using the on formattedvalue function until the issue is resolved.

Exploit

Fix

Use of Externally-Controlled Format String

Weakness Enumeration

Related Identifiers

CVE-2025-24359
GHSA-3WWR-3G9F-9GC7
OESA-2025-1297
OESA-2025-1298
OESA-2025-2558
OPENSUSE-SU-2025:0052-1
OPENSUSE-SU-2025:14701-1

Affected Products

Debian
Asteval