CVE-2026-133708
diffpy.structure before 3.5.1 Code Execution via eval in get_symop CIF Parsing
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 20, 2026
- Updated
- Nov 20, 2026
- Reserved
- Nov 20, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.5 High | 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 | VulnCheck |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Affected Products
| Product | Versions |
|---|---|
diffpy.structurediffpy |
|
References
- https://github.com/diffpy/diffpy.structure/issues/204issue-tracking
- https://github.com/diffpy/diffpy.structure/commit/f4be1d534fa9cf488c8e83f258e59fe09b526f62patch
- https://github.com/diffpy/diffpy.structure/blob/3.5.0/src/diffpy/structure/parsers/p_cif.pytechnical-description
- diffpy.structure 3.5.1 Release Notesrelease-notes
- VulnCheck Advisory: diffpy.structure before 3.5.1 Code Execution via eval in get_symop CIF Parsingthird-party-advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.