Code execution via eval in diffpy.structure CIF parsing
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
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
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
- 2026-11-20 Threatist record created from CVE-2026-133708
- 2026-11-20 Alias added: GHSA-3vfj-3hfg-rm35
- 2026-11-25 CISA SSVC decision points changed
References
Sources
- CVE-2026-133708 · CVE Program
- CVE-2026-133708 · NVD
- FIRST EPSS
- GHSA-3vfj-3hfg-rm35 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences