CVE catalog

CVE-2025-24359

python-asteval: CVE-2025-24359

[CVE catalog]

Severity
High · CVSS 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.28% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-astevalsid1.0.6-2fixed
Debianpython-astevalforky1.0.6-2fixed
Debianpython-astevaltrixie1.0.6-2fixed
Debianpython-astevalbookworm0.9.28-1vulnerable
Opensusepython-astevaltumbleweed1.0.6-1.1fixed
Susepython-astevalpackage hub 15 sp61.0.6-bp156.4.3.1fixed
Opensusepython-astevalleap 15.61.0.6-bp156.4.3.1fixed
Ubuntupython-asteval20.040.9.12-1vulnerable
Ubuntupython-asteval20.040.9.12-2vulnerable
Ubuntupython-asteval20.040.9.17-1vulnerable
Ubuntupython-asteval22.040.9.19-2vulnerable
Ubuntupython-asteval22.040.9.25-2vulnerable
Ubuntupython-asteval24.040.9.30-1vulnerable
Ubuntupython-asteval24.040.9.31-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-astevalsourcesid1.0.6-2not yet assignedNot reported[1095031]
Debianpython-astevalsourceforky1.0.6-2not yet assignedNot reported[1095031]
Debianpython-astevalsourcetrixie1.0.6-2not yet assignedNot reported[1095031]
Debianpython-astevalsourcebookworm(unfixed)not yet assignedNot reported[1095031]
Opensusepython-astevalrpmtumbleweed1.0.6-1.1Not reportedOPENSUSE-SU-2025:14701-1Not reported
Susepython-astevalrpmpackage hub 15 sp61.0.6-bp156.4.3.1Not reportedOPENSUSE-SU-2025:0052-1Not reported
Opensusepython-astevalrpmleap 15.61.0.6-bp156.4.3.1Not reportedOPENSUSE-SU-2025:0052-1Not reported

[Debian bug #1095031]

Notes

[bookworm] python-asteval: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-asteval]Affected

    Source package: [python-asteval]

    Details (2)
    • 0.9.28-1 · all · bookworm

      Affected

      dsa · python-asteval · debian · bookworm; dsa · python-asteval · debian · 12

    • 0.9.28-1 · all · bookworm

      Affected

      dsa · python-asteval · debian · bookworm; dsa · python-asteval · debian · 12

[openSUSE Tumbleweed]

  • Source package: [python-asteval]

    Details (1)
    • 1.0.9-1.1 · noarch · tumbleweed

      Unknown · Fixed: 1.0.6-1.1

      Version impact unknown

      dsa · python-asteval · opensuse · tumbleweed

  • Source package: [python-asteval]

    Details (1)
    • 1.0.9-1.1 · noarch · tumbleweed

      Unknown · Fixed: 1.0.6-1.1

      Version impact unknown

      dsa · python-asteval · opensuse · tumbleweed

[Debian 13 (Trixie)]

  • Source package: [python-asteval]

    Details (2)
    • 1.0.6-2 · all · trixie

      Fixed · Fixed: 1.0.6-2

      dsa · python-asteval · debian · 13

    • 1.0.6-2 · all · trixie

      Fixed · Fixed: 1.0.6-2

      dsa · python-asteval · debian · 13

Observed:

References