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.