CVE-2026-141339
7.8HighPublished Dec 1, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User action
- Required
- Impact
- Full C/I/A compromise
- Weakness
- CWE-502
What an attacker gets
Attackers can execute arbitrary code with your user privileges. They need to trick you into loading a malicious clip_img_encoder.pt file.
Root cause
The application uses unsafe pickle deserialization with weights_only set to False when loading image encoder weights.
Affected versions
Teriks dgenerate 6.0.0 development builds prior to commit b64fe08
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Fix & remediation
Update to a version containing commit b64fe08 or later. Do not load untrusted adapter repositories or clip_img_encoder.pt files.
AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
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.
References
- https://github.com/Teriks/dgenerate/blob/fb6c9f5b9e5ecc6a51464bc9bea91845ecb49622/dgenerate/extras/hydit/image_encoder.py#L310-L314
- https://github.com/Teriks/dgenerate/commit/b64fe085a03e5d326513f9f0001e2a461f5b2cfd
- https://github.com/Teriks/dgenerate/issues/95
- https://www.vulncheck.com/advisories/teriks-dgenerate-6.0.0-development-builds-before-commit-b64fe08-unsafe-deserialization-via-hunyuan-dit-ip-adapter
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1413437.8HighAttackers can execute arbitrary code with your privileges by providing a malicious PyTorch model file. This requires a user to load a crafted model via the InferencePipeline.
- CVE-2026-1413428.8HighAuthenticated attackers can execute arbitrary Python code as the server process. This allows them to steal data source credentials and LLM API keys.
- CVE-2026-1413417.8HighLocal attackers can execute arbitrary code as the user by placing a malicious package in the same directory as a Jupyter notebook. This requires a user to open a notebook in a directory containing the malicious file.
- CVE-2026-1413407.0HighAttackers can execute arbitrary commands as the user running the process. This requires a user to process a maliciously named genome file through the ANImf algorithm.
- CVE-2026-1413387.8HighAttackers can execute arbitrary commands as the analyst by providing a maliciously named BAM or SAM file. This requires the analyst to process a file with shell syntax in its filename using inStrain.
- CVE-2026-1413308.1HighUnauthenticated attackers can hijack user sessions by tricking victims into clicking a malicious link. This allows the attacker to steal the victim's login name and persistent app password.