Skip to main content
Vulnerability Database/CVE-2025-12923

CVE-2025-12923: ChestnutCMS Path Traversal Vulnerability

CVE-2025-12923 is a path traversal vulnerability in ChestnutCMS affecting versions up to 1.5.8. Attackers can manipulate the path argument to access unauthorized files. This article covers technical details, impact, and steps to mitigate the risk.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-12923 Overview

CVE-2025-12923 is a path traversal vulnerability [CWE-22] in liweiyi ChestnutCMS versions up to 1.5.8. The flaw resides in the resourceDownload function handling requests to the /dev-api/common/download endpoint. Attackers can manipulate the path argument to read files outside the intended directory. The attack is remotely exploitable over the network, though it requires high privileges on the target application. A public proof-of-concept has been disclosed, increasing the likelihood of opportunistic exploitation against exposed instances.

Critical Impact

Authenticated remote attackers can read arbitrary files from the ChestnutCMS host, potentially exposing configuration files, credentials, and application source code.

Affected Products

  • liweiyi ChestnutCMS versions up to and including 1.5.8
  • The /dev-api/common/download endpoint
  • The resourceDownload function processing the path parameter

Discovery Timeline

  • 2025-11-10 - CVE-2025-12923 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2025-12923

Vulnerability Analysis

The vulnerability affects the resourceDownload function exposed via the /dev-api/common/download route in ChestnutCMS. The function accepts a user-supplied path parameter that identifies the resource to download. The application does not sufficiently validate or canonicalize this parameter before using it to resolve a file on the server's filesystem.

An authenticated attacker can supply directory traversal sequences such as ../ in the path argument. The server then resolves these sequences, stepping outside the intended resource directory. The response returns the contents of files the application process has permission to read.

Sensitive targets on typical Java-based CMS deployments include application configuration files containing database credentials, API keys, deployment descriptors, and system files such as /etc/passwd on Linux hosts. The disclosure is categorized as a Common Weakness Enumeration path traversal issue [CWE-22].

Root Cause

The root cause is improper limitation of a pathname to a restricted directory. The resourceDownload handler trusts the path input and resolves it against the filesystem without enforcing a canonical base directory check. No allowlist of permitted resources is applied, and traversal sequences are not stripped or rejected.

Attack Vector

Exploitation requires network access to the application and valid high-privilege credentials. An attacker issues an HTTP request to /dev-api/common/download with a crafted path parameter containing directory traversal sequences. The server returns the targeted file in the HTTP response body. No user interaction is required.

Technical details and a proof-of-concept are documented in the public GitHub PoC for CVE-2025-12923 and the VulDB entry 331643.

Detection Methods for CVE-2025-12923

Indicators of Compromise

  • HTTP requests to /dev-api/common/download containing ../, ..%2f, ..%5c, or encoded traversal sequences in the path parameter
  • Requests to the download endpoint referencing filenames outside the application's resource directory such as application.yml, application.properties, or /etc/passwd
  • Unusual HTTP 200 responses from /dev-api/common/download with content types or sizes inconsistent with legitimate downloads
  • Access to the download endpoint from authenticated accounts that normally do not use administrative download functions

Detection Strategies

  • Deploy web application firewall rules that inspect the path query parameter for traversal patterns and reject requests before they reach the application
  • Correlate authenticated session activity with access to /dev-api/common/download and flag deviations from baseline user behavior
  • Review application access logs for repeated download requests from the same source referencing varied filesystem paths

Monitoring Recommendations

  • Enable verbose logging on the ChestnutCMS download controller to capture the full path parameter value for each request
  • Forward web server and application logs to a centralized analytics platform for retention and traversal pattern searches
  • Monitor filesystem read activity on hosts running ChestnutCMS for the application process accessing files outside its deployment directory

How to Mitigate CVE-2025-12923

Immediate Actions Required

  • Restrict network exposure of the /dev-api/common/download endpoint to trusted administrative networks only
  • Review and reduce the privileges of accounts able to invoke the download function, since exploitation requires authentication
  • Rotate any credentials, API keys, or secrets stored in files readable by the ChestnutCMS process, assuming potential exposure
  • Audit access logs for the download endpoint covering the period before patching

Patch Information

No vendor advisory URL is listed in the published CVE data at the time of writing. Administrators running ChestnutCMS 1.5.8 or earlier should monitor the upstream project for a fixed release and apply updates once published. Until a fix is available, apply the workarounds below.

Workarounds

  • Block or filter requests containing ../, ..\, %2e%2e, or other traversal encodings at the reverse proxy or web application firewall layer
  • Enforce a strict allowlist of permitted download filenames or resource identifiers at the proxy layer
  • Disable or remove the /dev-api/common/download route if the resource download feature is not required in production deployments
  • Run the ChestnutCMS application process under a dedicated low-privilege account restricted to its own installation directory

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.