CVE-2026-133708
diffpy.structure code execution via eval in CIF symmetry parsing
An attacker can run Python code with a victim's privileges by tricking them into opening a crafted CIF file.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-133708 divulgada · CVSS 8.5 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
diffpy.structure, a Python package, is affected by a code execution flaw in how it parses CIF files. An attacker can craft a CIF file with malicious symmetry operations that the software passes to eval(), running Python code with the victim's privileges. This requires local access and a user to open the crafted file.
Affects diffpy.structure 3.5.0 and earlier when parsing CIF files with symmetry operations in the _space_group_symop_operation_xyz loop. Fixed in 3.5.1.
Descripción original del registro (VulnCheck)
diffpy.structure before 3.5.1 contains a code execution vulnerability that allows attackers to run Python code by supplying crafted CIF symmetry operations passed to eval() in get_symop(). Attackers can embed expressions in the _space_group_symop_operation_xyz or _symmetry_equiv_pos_as_xyz loop to execute code with victim privileges when the CIF file is parsed locally.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
diffpy.structure |
Corregida | 3.5.1 | — | — |
3.5.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/diffpy/diffpy.structure/commit/f4be1d534fa9cf488c8e83f258e59fe09b526f62https://github.com/diffpy/diffpy.structure/issues/204https://github.com/diffpy/diffpy.structure/blob/3.5.0/src/diffpy/structure/parsers/p_cif.pyhttps://github.com/diffpy/diffpy.structure/releases/tag/3.5.1https://www.vulncheck.com/advisories/diffpy-structure-before-3.5.1-code-execution-via-eval-in-get-symop-cif-parsingLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
