CVE-2026-141339: Teriks dgenerate 6.0.0 Development Builds before Commit b64fe08 Unsafe Deserialization via Hunyuan-DiT IP-Adapter
Teriks dgenerate 6.0.0 development builds before commit b64fe08 contain an unsafe deserialization vulnerability in loadhunyuanditclipimageencoder that allows code execution through fallback pickle loading. Attackers can supply a malicious clipimgencoder.pt in an adapter repository or folder, forcing torch.load with weightsonly=False to run code with user privileges.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of Teriks dgenerate 6.0.0 development builds before commit b64fe08 are exposed when they load a Hunyuan-DiT IP-Adapter from a repository or folder containing an attacker-controlled clip_img_encoder.pt file.
What does an attacker need to exploit it?
An attacker needs to cause the user to load a malicious clip_img_encoder.pt through the affected adapter repository or folder path. Exploitation requires user interaction to select or load that adapter content, but does not require privileges on the target system.
What is the impact of successful exploitation?
The malicious file can trigger fallback pickle loading through torch.load with weights_only=False, resulting in code execution with the privileges of the user running dgenerate.
How can the issue be remediated?
Update to code at or after commit b64fe08. Until then, do not load Hunyuan-DiT IP-Adapter repositories or folders unless their contents, including clip_img_encoder.pt, are trusted and verified.