{"id":"CVE-2026-133708","summary":"diffpy.structure before 3.5.1 Code Execution via eval in get_symop CIF Parsing","details":"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.","modified":"2026-11-20T14:00:19.664598316Z","published":"2026-11-20T12:17:09.803Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-95"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133708.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133708.json"},{"type":"PACKAGE","url":"https://github.com/diffpy/diffpy.structure"},{"type":"ARTICLE","url":"https://github.com/diffpy/diffpy.structure/blob/3.5.0/src/diffpy/structure/parsers/p_cif.py"},{"type":"FIX","url":"https://github.com/diffpy/diffpy.structure/commit/f4be1d534fa9cf488c8e83f258e59fe09b526f62"},{"type":"REPORT","url":"https://github.com/diffpy/diffpy.structure/issues/204"},{"type":"ADVISORY","url":"https://github.com/diffpy/diffpy.structure/releases/tag/3.5.1"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133708"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/diffpy-structure-before-3.5.1-code-execution-via-eval-in-get-symop-cif-parsing"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/diffpy/diffpy.structure","events":[{"introduced":"0"},{"fixed":"3857a1efbaceff3cdd8c30ff41fdc4ae7b7f0143"},{"fixed":"f4be1d534fa9cf488c8e83f258e59fe09b526f62"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"3.5.1"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"f4be1d534fa9cf488c8e83f258e59fe09b526f62"}]},{"original_tag":"3.5.1","range":[{"fixed":"3857a1efbaceff3cdd8c30ff41fdc4ae7b7f0143"}],"source":"REFERENCES_TAG"}]}}],"versions":["3.5.0","3.5.0-rc.0","3.4.0","3.4.0-rc.1","3.4.0-rc.0","3.3.1","3.3.1-rc.1","3.3.1-rc.0","3.3.0rc0","3.3.0","3.2.3rc0","3.2.3","3.2.2","3.2.2rc1","3.2.2rc0","3.2.1","3.2.1rc1","3.2.1rc0","3.2.0","3.2.0rc0","v3.0.2","v3.0.1","v3.0.0","v1.3.5","v1.3.4","v1.3.3","v1.3.2","v1.3.1","v1.3","v1.3b0","v1.3a1","v1.3a","v1.2","v1.2b2","v1.2b1","v1.2b0","svn6920","v1.1","svn3067"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133708.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}