Teriks dgenerate 6.0.0 development builds before commit b64fe08 contain an unsafe deserialization vulnerability in load_hunyuan_dit_clip_image_encoder that allows code execution through fallback pickle loading. Attackers can supply a malicious clip_img_encoder.pt in an adapter repository or folder, forcing torch.load with weights_only=False to run code with user privileges.
https://github.com/Teriks/dgenerate/issues/95
https://github.com/Teriks/dgenerate/commit/b64fe085a03e5d326513f9f0001e2a461f5b2cfd