Advisory record · GHSA-mcrp-whpw-jp68

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 fil...

CVSS 9.8 CriticalCriticalEPSS 0.060 · 93rd percentile

Critical, because:

  • CVSS score 9.8: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 20 Mar 2025, 10:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
invokeaiPyPI<756008dc5899081c5aa51e5bd8f24c1b3975a59e || >=5.3.1, <5.4.3rc1756008dc5899081c5aa51e5bd8f24c1b3975a59e, 5.4.3rc1
Identifiers
GHSA-mcrp-whpw-jp68 · CVE-2024-12029 · PYSEC-2025-9
Weakness (CWE)
CWE-502
Published
20 Mar 2025
Updated
10 Jun 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

invokeai versions 5.3.1 through 5.4.2 are vulnerable to remote code execution via the /api/v2/models/install API. The flaw is unsafe deserialization of model files using torch.load, so a malicious model file can run attacker code when it is loaded. Upgrade to invokeai 5.4.3 or later.

Written 10 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.8 Critical 3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CNA (@huntr_ai)
  • CISA KEV Not listed.
  • EPSS 0.060, the 93rd percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

This record came from the full history of the GitHub Advisory Database, published 20 Mar 2025. New records show when each source confirmed them.

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.