PT-2025-5341

CVE-2025-24359

·

Published

2025-01-24

·

Updated

2026-07-07

Description by

CVSS 3.1
8.4
High
MetricsAV: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.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-3WWR-3G9F-9GC7
OESA-2025-1297
OESA-2025-1298
OESA-2025-2558
OPENSUSE-SU-2025:0052-1
OPENSUSE-SU-2025:14701-1
PYSEC-2026-1195
Found an issue in the description? Have something to add? Feel free to write us 👾