CVE-2026-65012

InvokeAI < 6.13.7 Unauthenticated Directory Enumeration via scan_folder

Published Jul 22, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

InvokeAI versions older than 6.13.7 expose a GET endpoint at /api/v2/models/scan_folder that accepts a user‑supplied scan_path parameter. Because no authentication is required, an external actor can supply arbitrary paths and the endpoint will recursively traverse the server filesystem. The HTTP status codes returned reveal whether a file or directory exists and whether it can be read, allowing an attacker to map sensitive data locations. This flaw, a credential‑related weakness (CWE‑306), permits unilateral information disclosure and undermines the confidentiality guarantees of the multi‑user mode.

Affected Systems

The affected product is invoke‑ai:InvokeAI. The release notes for v6.13.7 contain the fix, therefore any deployment running 6.13.6 or earlier is considered vulnerable. The input does not list a precise fixed‑version range, but it is inferred from the version hierarchy that all pre‑6.13.7 builds lack the restriction.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity. The EPSS score of <1% suggests a low probability of exploitation reported in the public data set, yet the vulnerability requires only unauthenticated HTTP GET requests and no special privileges, making the attack path straightforward for any actor who can reach the endpoint. It is not listed in the CISA KEV catalog, but the lack of authentication means it can facilitate further reconnaissance or privilege escalation, especially in multi‑user deployments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade InvokeAI to version 6.13.7 or newer
  • Restrict network access to the /api/v2/models/scan_folder endpoint using firewall or ACLs to limit exposure to trusted hosts
  • Enable authentication for all API endpoints and activate multi‑user mode with proper role‑based access controls to enforce correct permissions
  • If immediate upgrade is not possible, place the /api/v2/models/scan_folder endpoint behind basic authentication or a web‑application firewall that blocks unauthenticated access

Generated by OpenCVE AI on August 3, 2026 at 23:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Invoke-ai
Invoke-ai invokeai
Vendors & Products Invoke-ai
Invoke-ai invokeai
Type Values Removed Values Added
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.
Title InvokeAI < 6.13.7 Unauthenticated Directory Enumeration via scan_folder
Weaknesses CWE-306
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 24, 2026, 9:35 PM
Reserved
Jul 21, 2026, 11:32 AM
Status
Deferred
Published
Jul 22, 2026, 5:16 PM
Modified
Oct 24, 2026, 1:10 PM