SCA: security update for asteval (GHSA-3wwr-3g9f-9gc7)

high Tenable Cloud Security Plugin ID 420767

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2025-24359)

See Also

https://github.com/advisories/GHSA-3wwr-3g9f-9gc7

Plugin Details

Severity: High

ID: 420767

Version: Revision 1.11

Type: Local

Family: SCA Checks

Published: 1/25/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.5

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.3

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2025-24359

CVSS v3

Risk Factor: High

Base Score: 8.4

Temporal Score: 7.3

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 1/24/2025

Vulnerability Publication Date: 1/24/2025

Reference Information

CVE: CVE-2025-24359