{"cve":"CVE-2024-12029","nvd":{"published":"2025-03-20T10:15:26.157","modified":"2026-06-17T06:58:55.060","status":"Deferred","description":"A remote code execution vulnerability exists in invoke-ai/invokeai versions 5.3.1 through 5.4.2 via the /api/v2/models/install API. The vulnerability arises from unsafe deserialization of model files using torch.load without proper validation. Attackers can exploit this by embedding malicious code in model files, which is executed upon loading. This issue is fixed in version 5.4.3.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-502"],"references":["https://github.com/invoke-ai/invokeai/commit/756008dc5899081c5aa51e5bd8f24c1b3975a59e","https://huntr.com/bounties/9b790f94-1b1b-4071-bc27-78445d1a87a3","https://huntr.com/bounties/9b790f94-1b1b-4071-bc27-78445d1a87a3"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:00:17.429720821+00:00"},"epss":{"cve":"CVE-2024-12029","score":0.05983,"percentile":0.93308,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mcrp-whpw-jp68","url":"https://osv.dev/vulnerability/GHSA-mcrp-whpw-jp68","summary":"InvokeAI Deserialization of Untrusted Data vulnerability","modified":"2025-05-20T18:11:03.727326Z","packages":[{"ecosystem":"PyPI","name":"invokeai","purl":"pkg:pypi/invokeai","ranges":[">=5.3.1 <5.4.3rc2"],"fixed":["5.4.3rc2"]}]},{"id":"PYSEC-2025-9","url":"https://osv.dev/vulnerability/PYSEC-2025-9","summary":"","modified":"2026-06-10T17:01:32.316547770Z","packages":[{"ecosystem":"PyPI","name":"invokeai","purl":"pkg:pypi/invokeai","ranges":[">=5.3.1 <5.4.3rc1"],"fixed":["5.4.3rc1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}