CVE-2026-133708: diffpy.structure before 3.5.1 Code Execution via eval in get_symop CIF Parsing
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 getsymop(). Attackers can embed expressions in the spacegroupsymopoperationxyz or symmetryequivposasxyz loop to execute code with victim privileges when the CIF file is parsed locally.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this vulnerability?
Any environment using diffpy.structure before 3.5.1 to parse CIF files is exposed if it processes a crafted file locally. Code runs with the privileges of the user or service performing the parse.
What does an attacker need to exploit it?
An attacker needs to cause a victim to parse a crafted CIF file containing malicious expressions in the _space_group_symop_operation_xyz or _symmetry_equiv_pos_as_xyz loop. User interaction is required because the malicious file must be parsed locally.
How can I determine whether I am affected?
Check whether your application uses the PyPI package diffpy.structure and identify its installed version. Versions before 3.5.1 that parse CIF input are affected, particularly where CIF files may come from untrusted sources.