Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify internet-exposed kkFileView instance
-
DeliverySend POST /listFiles with traversal path (e.g., ../../etc)
-
ExploitReceive JSON directory listing outside demo root
-
ExecutionEnumerate sensitive directories (config, logs, home)
-
ImpactUse filesystem intelligence to plan follow-on attack
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No authentication is required - the /listFiles endpoint is explicitly described as unauthenticated, consistent with CVSS PR:N. Exploitation requires only network access to the kkFileView HTTP service and the ability to send a POST request with a crafted path parameter; no special privileges, session tokens, or non-default configuration are needed. Exploitation is constrained to directory enumeration only - file contents cannot be retrieved through this endpoint. The filesystem paths reachable are limited to those accessible under the OS user account running the kkFileView process. If the service is deployed exclusively on an internal network with no external exposure, exploitation is limited to actors who already have internal network access. |
| Impact | The CVSS 3.1 score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) accurately reflects the bounded nature of the vulnerability: the disclosed information is limited to directory names, not file contents, and there is no write or denial-of-service primitive. The unauthenticated network vector with low attack complexity is the most operationally significant signal - exploitation requires nothing beyond a crafted HTTP POST request. EPSS data was not provided in the available intelligence, so relative exploitation probability cannot be independently quantified. The absence of a CISA KEV entry and the absence of confirmed public POC code suggest opportunistic mass exploitation is not currently observed, though the simplicity of the attack makes it accessible to low-sophistication actors. The primary residual risk is that directory listings frequently expose paths to configuration files, credential stores, and log directories that facilitate reconnaissance for higher-impact follow-on attacks, amplifying the effective impact beyond the raw CVSS score implies. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a POST request to the target's /listFiles endpoint with a path parameter such as ../../etc or ../../home/appuser; the server resolves this against the demo directory base path and calls Files.newDirectoryStream on the traversed location, returning a JSON directory listing. No public POC has been identified, but the vulnerability is mechanically trivial and the exact injection point is documented in the public fix commit, making independent reproduction straightforward for any attacker who reads the patch. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Directory traversal in kkFileView prior to 5.0.1 exposes an unauthenticated POST /listFiles endpoint that accepts a user-supplied path parameter and passes it directly to Files.newDirectoryStream without confining it to the configured demo directory, enabling remote attackers to enumerate arbitrary server-side directories. The flaw is mechanically straightforward - no credentials, no user interaction, and no special configuration are required - though impact is bounded to directory listing rather than file content disclosure. No public exploit code or CISA KEV listing has been identified at time of analysis; a vendor-released patch exists at version 5.0.1.
RemediationAI
Upgrade kkFileView to version 5.0.1 or later; this is the vendor-confirmed fix, delivered via GitHub release tag v5.0.1 (https://github.com/kekingcn/kkFileView/releases/tag/v5.0.1) and commit 47745e4d (https://github.com/kekingcn/kkFileView/commit/47745e4d74112000fcc4f0664e2fc751e6cf9bae). If immediate upgrade is not feasible, block external access to the POST /listFiles endpoint at a WAF or reverse proxy - note this will disable demo file listing functionality for legitimate users. As a secondary control, restrict kkFileView network exposure to trusted internal networks, eliminating the internet-facing attack surface; this does not fix the flaw but reduces attacker reach to insider or post-compromise scenarios. Refer to the GitHub Security Advisory GHSA-pmp8-g8p2-p6jq for additional vendor guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
kkFileView is a Spring Boot document preview service written in Java. The vulnerable code is in server/src/main/java/cn/keking/web/controller/FileController.java, in the getFiles() method bound to POST /listFiles. Prior to the fix, the method concatenated the raw user-supplied path string directly onto the base directory path and passed the result to the Java NIO Files.newDirectoryStream() API, performing no null-byte rejection, no normalization, and no prefix-containment check to verify the resolved path remained inside the demo directory root. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - Path Traversal) is the root cause class. The fix in commit 47745e4d introduces a static resolveDirectoryUnderRoot() helper that applies lexical normalization via Path.normalize(), explicitly rejects null bytes, leading slashes, Windows drive-letter prefixes, and .. segments, resolves the candidate path under the root, verifies prefix containment both on the normalized path and on the real filesystem path (via toRealPath()) to block symlink-based escapes.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Network-reachable unauthenticated endpoint requires no privileges or interaction; read-only directory listing yields only low confidentiality impact with no integrity or availability effect.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-56940
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB