Skip to main content

CVE-2025-2744: Iocoder Ruoyi-vue-pro Path Traversal Flaw

CVE-2025-2744 is a critical path traversal vulnerability in Iocoder Ruoyi-vue-pro 2.4.1 affecting the Material Upload Interface. Attackers can manipulate file paths to access unauthorized directories. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

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-2744 Overview

CVE-2025-2744 is a path traversal vulnerability [CWE-22] in zhijiantianya ruoyi-vue-pro version 2.4.1. The flaw resides in the Material Upload Interface, specifically the /admin-api/mp/material/upload-news-image endpoint. An authenticated remote attacker can manipulate the File parameter to traverse directories outside the intended upload path. Public disclosure includes technical details of the arbitrary file deletion behavior triggered through this endpoint. The vendor was contacted before disclosure but did not respond, and no official patch is referenced in the advisory.

Critical Impact

Authenticated remote attackers can exploit the endpoint to traverse the file system, enabling arbitrary file operations that impact application integrity and availability.

Affected Products

  • iocoder ruoyi-vue-pro 2.4.1
  • Component: Material Upload Interface (/admin-api/mp/material/upload-news-image)
  • CPE: cpe:2.3:a:iocoder:ruoyi-vue-pro:2.4.1:*:*:*:*:*:*:*

Discovery Timeline

  • 2025-03-25 - CVE-2025-2744 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-2744

Vulnerability Analysis

The vulnerability affects the material upload workflow within ruoyi-vue-pro, a Java-based rapid development platform. The /admin-api/mp/material/upload-news-image endpoint accepts a File argument that the application uses to construct a file system path without sufficient normalization or validation. Publicly disclosed research describes the flaw as enabling arbitrary file deletion via path traversal sequences supplied in the request.

Exploitation requires network access to the admin API and low-privileged authenticated access. The attack complexity is low, and no user interaction is required. Because the affected endpoint interacts with server-side file storage, successful exploitation can remove files unrelated to the material upload feature, degrading application integrity and availability.

Root Cause

The root cause is insufficient sanitization of a user-controlled file path parameter. When the File argument contains traversal sequences such as ../, the application resolves the resulting path outside the intended upload directory. The absence of canonicalization and allowlist checks before performing file operations enables the traversal condition described in [CWE-22].

Attack Vector

An attacker with valid low-privilege credentials submits a crafted request to the /admin-api/mp/material/upload-news-image endpoint. The File parameter contains directory traversal sequences that direct the application toward arbitrary paths on the host file system. The vulnerability is exploitable remotely over the network without user interaction.

No verified proof-of-concept code is included in this advisory. Technical details of the arbitrary file deletion behavior are documented in the GitHub research writeup and the VulDB #300846 entry.

Detection Methods for CVE-2025-2744

Indicators of Compromise

  • Requests to /admin-api/mp/material/upload-news-image containing traversal sequences such as ../, ..\, URL-encoded %2e%2e%2f, or double-encoded variants in the File parameter.
  • Unexpected deletion or modification of files outside the configured material upload directory.
  • Application error logs referencing file operations on paths outside the intended storage location.

Detection Strategies

  • Inspect HTTP request bodies and query strings targeting the material upload endpoint for path traversal patterns.
  • Correlate authenticated admin sessions with file system events on the application server to identify anomalous file removal activity.
  • Enable web application firewall (WAF) rules that block traversal payloads submitted to /admin-api/mp/material/* routes.

Monitoring Recommendations

  • Forward web server and application logs into a centralized analytics platform for path traversal signature matching.
  • Monitor for spikes in 4xx/5xx responses from the material upload endpoint that may indicate probing.
  • Track authentication events for accounts that subsequently interact with sensitive administrative APIs.

How to Mitigate CVE-2025-2744

Immediate Actions Required

  • Restrict network access to the /admin-api/* routes to trusted administrative networks only.
  • Rotate credentials for any admin accounts capable of reaching the vulnerable endpoint.
  • Review file system activity on hosts running ruoyi-vue-pro 2.4.1 for evidence of unauthorized deletions.

Patch Information

No vendor patch is referenced in the advisory. The vendor was contacted prior to disclosure and did not respond. Track the VulDB #300846 detail page and the project repository for future fixes and upgrade to a version that validates the File parameter once available.

Workarounds

  • Deploy a WAF rule to reject requests to /admin-api/mp/material/upload-news-image containing .. sequences or encoded traversal payloads.
  • Apply strict file system permissions so the application service account can only write within the intended material upload directory.
  • Disable or reverse-proxy-block the vulnerable endpoint if the material upload feature is not required in the deployment.
bash
# Example nginx rule to block traversal payloads to the vulnerable endpoint
location /admin-api/mp/material/upload-news-image {
    if ($request_uri ~* "(\.\./|\.\.\\|%2e%2e%2f|%2e%2e/|\.\.%2f)") {
        return 403;
    }
    proxy_pass http://ruoyi_backend;
}

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.