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.
Published: 2026-08-11
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

Generated by OpenCVE AI on August 12, 2026 at 20:23 UTC.

Remediation

No vendor fix or workaround currently provided.

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

History

Thu, 13 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 13 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Keking
Keking kkfileview
Vendors & Products Keking
Keking kkfileview

Tue, 11 Aug 2026 20:15:00 +0000

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'}


Subscriptions

Keking Kkfileview
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-13T13:55:43.147Z

Reserved: 2026-08-11T17:18:01.597Z

Link: CVE-2026-73244

cve-icon Vulnrichment

Updated: 2026-08-13T13:55:19.799Z

cve-icon NVD

Status : Received

Published: 2026-08-11T20:18:49.547

Modified: 2026-08-13T15:20:12.417

Link: CVE-2026-73244

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T10:30:04Z

Weaknesses
  • CWE-22

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