{"id":"CVE-2024-12029","published":"2025-03-20T10:08:45Z","modified":"2025-03-20T14:33:03Z","title":"Remote Code Execution via Model Deserialization in invoke-ai/invokeai","vendor":"invoke-ai","product":"invoke-ai/invokeai","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05662,"percentile":0.9374,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://huntr.com/bounties/9b790f94-1b1b-4071-bc27-78445d1a87a3","tags":[]},{"url":"https://github.com/invoke-ai/invokeai/commit/756008dc5899081c5aa51e5bd8f24c1b3975a59e","tags":[]}],"priority":{"score":30.6,"factors":[{"name":"EPSS percentile","points":18.75},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-15","earliestUrl":"https://github.com/Lu3ky13/Alternative-Approach-Reverse-Shell-Callback-Test-InvokeAI-RCE","repos":[{"name":"Lu3ky13/Alternative-Approach-Reverse-Shell-Callback-Test-InvokeAI-RCE","url":"https://github.com/Lu3ky13/Alternative-Approach-Reverse-Shell-Callback-Test-InvokeAI-RCE","stars":0,"created":"2026-04-15"}]},"metasploit":[{"name":"InvokeAI RCE","module":"exploit/linux/http/invokeai_rce_cve_2024_12029","type":"exploit","disclosureDate":"2025-02-07","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/invokeai_rce_cve_2024_12029.rb"}],"first":{"date":"2025-02-07","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/invokeai_rce_cve_2024_12029.rb"},"provenance":"source"},"vendorSlug":"invoke-ai","affectedVersions":[{"vendor":"invoke-ai","product":"invoke-ai/invokeai","versions":[">= unspecified, < 5.4.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-03-20T14:32:34.599806Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"InvokeAI","vulnerableRanges":[">=5.3.1, <5.4.3rc2",">=5.3.1, <5.4.3rc1"],"patched":["5.4.3rc2","5.4.3rc1"],"from":["GHSA-mcrp-whpw-jp68","PYSEC-2025-9"],"provenance":"source"}],"summary":{"text":"The flaw is unsafe deserialization of model files via torch.load without proper validation, in the /api/v2/models/install API of invoke-ai/invokeai (versions 5.3.1 through 5.4.2). An attacker can embed malicious code in a model file that executes when the file is loaded, and the attack vector is network-based with no authentication, privileges or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:32:12Z"},"euvd":{"id":"EUVD-2025-7245","exploited":false,"provenance":"source"}}