llamaCVEVulnerability Intelligence
/
diffpy.structure

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.

Solo en configuraciones específicasParche disponiblecode injection
Descargar PNG JSON
CVSS 4.0
8.5
Alta
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
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión3.5.1
Exposición18 hDesde la divulgación, 20 nov 2026, 7:17 a. m.
Detección5 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
07:17 a. m.
01:40 a. m.
07:17 a. m.
11:53 a. m.
04:28 p. m.
09:04 p. m.
01:40 a. m.
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-133708 divulgada · CVSS 8.5 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 20 nov 2026

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.

¿Qué significa?The CIF parser passes symmetry operation text from the _space_group_symop_operation_xyz loop to Python eval(), so a crafted CIF file can run the file author's Python code with the privileges of the user parsing it.
¿Quién está afectado?diffpy.structure version 3.5.0 or earlier is affected when a CIF block containing _atom_site_label is parsed as a structure and includes a _space_group_symop_operation_xyz entry. To check a version, run pip show diffpy.structure or print diffpy.structure.__version__ in Python.
¿Qué hacer?Upgrade diffpy.structure to 3.5.1, which changes get_symop so it no longer evaluates CIF symmetry operations (patch f4be1d5).
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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
diffpy.structure version 3.5.0 or earlier is affected“Affected versions: <= 3.5.0”
02
A CIF file with a symmetry operation in the _space_group_symop_operation_xyz loop is parsed“a _space_group_symop_operation_xyz entry executes while the file is parsed”
03
The CIF block contains _atom_site_label so it is parsed as a structure“a block is parsed as a structure as soon as it contains _atom_site_label”
¿Quién debe revisar?Teams and researchers using diffpy.structure 3.5.0 or earlier to parse CIF files from collaborators, downloads, structure databases or paper supplements.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:L
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
6.4/ 10Medio
Vector 6.4 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
diffpy.structure< 3.5.1
3.5.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
diffpy.structure
Corregida 3.5.1 — —
Versiones corregidas3.5.1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Parchehttps://github.com/diffpy/diffpy.structure/commit/f4be1d534fa9cf488c8e83f258e59fe09b526f62
Reportehttps://github.com/diffpy/diffpy.structure/issues/204
Otrahttps://github.com/diffpy/diffpy.structure/blob/3.5.0/src/diffpy/structure/parsers/p_cif.py
Otrahttps://github.com/diffpy/diffpy.structure/releases/tag/3.5.1
Otrahttps://www.vulncheck.com/advisories/diffpy-structure-before-3.5.1-code-execution-via-eval-in-get-symop-cif-parsing

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.