CVE-2026-133708: diffpy.structure Eval Injection
Published 2026-11-20 · Updated 2026-12-04 · Source disclosure@vulncheck.com
Not known to be exploited · high severity — update diffpy.structure to 3.5.1 or later in your next patch cycle.
What to do
- Update diffpy.structure to version 3.5.1 or later. Versions before 3.5.1 are affected.
- Until it is patched, limit who has a local account on systems running diffpy.structure.
- Restrict access to the affected feature to trusted users until the fix is applied.
- Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| diffpy.structure | < 3.5.1 | 3.5.1 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
Exploiting it requires local access to the system, or getting a user to open a crafted file; the attacker does not need an account, and a victim has to take an action such as opening a link or file. Attack complexity is low, so a working exploit is expected to be reliable. The impact on confidentiality, integrity and availability is rated high.
| Attack vector | Local | Exploiting it requires local access to the system, or getting a user to open a crafted file. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | Required | A victim has to take an action, such as opening a link or file. |
| Confidentiality | High | Total loss of confidentiality. |
| Integrity | High | Total loss of integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: Eval Injection
Attacker-controlled input is passed to a code evaluation function, which usually means arbitrary code execution.
Classified as CWE-95.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/diffpy/diffpy.structure/commit/f4be1d534fa9cf488c8e83f258e59fe09b526f62
- Patchhttps://github.com/diffpy/diffpy.structure/releases/tag/3.5.1
- Advisoryhttps://www.vulncheck.com/advisories/diffpy-structure-before-3.5.1-code-execution-via-eval-in-get-symop-cif-parsing
- Referencehttps://github.com/diffpy/diffpy.structure/blob/3.5.0/src/diffpy/structure/parsers/p_cif.py
- Referencehttps://github.com/diffpy/diffpy.structure/issues/204