CVE-2026-65012
Received Received - Intake

Unauthenticated Directory Enumeration in InvokeAI

Vulnerability report for CVE-2026-65012, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-22

Last updated on: 2026-07-22

Assigner: VulnCheck

Description

InvokeAI before 6.13.7 contains an unauthenticated directory enumeration vulnerability in the GET /api/v2/models/scan_folder endpoint that accepts attacker-controlled scan_path parameters. Unauthenticated attackers can recursively enumerate arbitrary server filesystem directories and use HTTP response codes to determine file existence and readability, bypassing multi-user mode access controls.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-22
Last Modified
2026-07-22
Generated
2026-07-22
AI Q&A
2026-07-22
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
invokeai invokeai to 6.13.7 (exc)
invokeai invokeai 6.13.7

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-306 The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-65012 is an unauthenticated directory enumeration vulnerability in InvokeAI versions before 6.13.7. It affects the GET /api/v2/models/scan_folder endpoint, which allows attackers to recursively enumerate arbitrary server filesystem directories by manipulating the scan_path parameter. Attackers can determine file existence and readability through HTTP response codes, bypassing multi-user mode access controls.

Detection Guidance

To detect this vulnerability, check if your InvokeAI instance is running a version prior to 6.13.7. Use commands like 'curl -X GET http://<target>/api/v2/models/scan_folder?scan_path=/etc' to test for directory enumeration. Monitor HTTP response codes (200 for readable paths, 400/500 for others) which indicate the vulnerability.

Additionally, inspect API responses for exposed sensitive files like invokeai.yaml or api_keys.yaml by accessing endpoints such as /api/v1/app/runtime_config without authentication.

Impact Analysis

This vulnerability allows unauthenticated attackers to access sensitive files like invokeai.yaml and api_keys.yaml, which may contain API keys for image generation services and model download tokens. It also enables unauthorized access to administrator functions in multi-user mode and exposes sensitive credentials such as remote_api_tokens and external API keys.

  • Attackers can enumerate filesystem paths and determine file existence and readability.
  • Sensitive credentials and configuration details may be exposed to unauthorized users.
Compliance Impact

This vulnerability could lead to non-compliance with GDPR and HIPAA due to unauthorized access to sensitive files like api_keys.yaml and invokeai.yaml, which may contain API keys and tokens. Exposure of such data risks violating data protection requirements for confidentiality and access controls.

Mitigation Strategies

Upgrade InvokeAI to version 6.13.7 or later immediately. Rotate all API keys and tokens stored in configuration files like invokeai.yaml and api_keys.yaml. Ensure the application is not exposed to untrusted networks or the internet.

Restrict access to sensitive endpoints by implementing proper authentication and authorization controls. Avoid running InvokeAI in multi-user mode unless necessary and use strong passwords.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-65012. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart