CVE-2026-73244

kkFileView: Unauthenticated path traversal in POST /listFiles allows arbitrary directory listing

Published Aug 11, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
kkFileView is a universal file online preview project based on Spring Boot. Prior to 5.0.1, the unauthenticated POST /listFiles endpoint in server/src/main/java/cn/keking/web/controller/FileController.java passes the user-controlled path parameter from FileController#getFiles to Files.newDirectoryStream without confinement to the demo directory, allowing directory enumeration outside the intended root. This issue is fixed in version 5.0.1.

Analysis

AI-generated

Technical impact

kkFileView, a Spring Boot based file preview application, allows an unauthenticated attacker to send a POST request to the /listFiles endpoint and supply a user-controlled path parameter. The application forwards this path directly to the Files.newDirectoryStream call without constraining it to the intended demo directory, enabling enumeration of files and directories outside the permitted root. The result is exposure of file listings that could reveal sensitive configuration files, user data, or other assets, constituting a directory disclosure vulnerability. The weakness is a classic path traversal flaw catalogued as CWE-22.

Affected Systems

The affected vendor is kekingcn, providing the product kkFileView. Any release before version 5.0.1 is vulnerable; patching to 5.0.1 or later removes the flaw.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity, while the EPSS score of less than 1% suggests a low probability of exploitation at this time. The vulnerability is not currently listed in CISA's KEV catalog, implying it is not a known exploited issue in the wild. Attacks can be launched from any network location without authentication, but the impact is limited to enumeration rather than complete system compromise. The attack vector is straightforward: submit a crafted POST request to /listFiles with a malicious path; the server will list directory contents outside the intended boundary.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade kkFileView to version 5.0.1 or later
  • If upgrading is not immediately possible, configure the web server or reverse proxy to block unauthenticated POST requests to /listFiles or require authentication before allowing access
  • Disable or remove the /listFiles endpoint in environments where it is not needed, or implement a custom filter that restricts the path parameter to the allowed directory root

Generated by OpenCVE AI on August 12, 2026 at 20:23 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 Keking
Keking kkfileview
Vendors & Products Keking
Keking kkfileview
Type Values Removed Values Added
Description kkFileView is a universal file online preview project based on Spring Boot. Prior to 5.0.1, the unauthenticated POST /listFiles endpoint in server/src/main/java/cn/keking/web/controller/FileController.java passes the user-controlled path parameter from FileController#getFiles to Files.newDirectoryStream without confinement to the demo directory, allowing directory enumeration outside the intended root. This issue is fixed in version 5.0.1.
Title kkFileView: Unauthenticated path traversal in POST /listFiles allows arbitrary directory listing
Weaknesses CWE-22
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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 13, 2026, 1:55 PM
Reserved
Aug 11, 2026, 5:18 PM
Status
Deferred
Published
Aug 11, 2026, 8:18 PM
Modified
Oct 24, 2026, 3:10 PM