CVE-2026-133708: diffpy.structure before 3.5.1 Code Execution via eval in get_symop CIF Parsing

Published Nov 20, 2026
·
Updated

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

1 affected component
pypi/diffpy.structure<3.5.1

Event History

Nov 20, 2026
CVE Published
via MITRE·12:17 PM
Data Sourced
via MITRE·12:17 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203