Read the docs

Code execution via eval in diffpy.structure CIF parsing

Priority LOW 38CWE-95Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-95.

Summary

diffpy.structure before 3.5.1 contains a code execution flaw where crafted CIF symmetry operations are passed to eval() in get_symop(), classified as CWE-95. A local attacker can embed Python expressions in a CIF file's symmetry operation loop, and the code runs with the victim's privileges when the file is parsed. User interaction is required, and no privileges are needed.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00224 7th percentileScored 2026-11-30
Fix Fixed diffpy.structure (diffpy): 3.5.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
diffpydiffpy.structurebefore 3.5.13.5.1Patch availableCNA
  • diffpy.structure Vendordiffpy Affected before 3.5.1 Fixed in 3.5.1 Patch available CNA

Remediation

Upgrade diffpy.structure to version 3.5.1 or later, which fixes the flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA diffpy.structure (diffpy) Fixed in 3.5.1

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-133708
  2. 2026-11-20 Alias added: GHSA-3vfj-3hfg-rm35
  3. 2026-11-25 CISA SSVC decision points changed

References

Sources