CVE-2025-24359lmfit asteval
Alta 8.4
Seguir: esta CVE · lmfit · lmfit asteval Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 50
- CVSS 3.1
- 8.4
- EPSS
- —
- Requiere autenticación
- Sí
- Publicada
- 24 ene 2025
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para asteval.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | asteval |
< 1.0.6 |
1.0.6 |
pip install "asteval>=1.0.6" |
| PyPI | asteval |
< 1.0.6 |
1.0.6 |
pip install "asteval>=1.0.6" |
Según OSV / GitHub Advisories (GHSA-3wwr-3g9f-9gc7, PYSEC-2026-1195). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- lmfit · asteval
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.