Dromara RuoYi-Vue-Plus Path Traversal Vulnerability in MailController

Vulnerability

A critical path traversal vulnerability has been identified in Dromara RuoYi-Vue-Plus version 5.4.0. The issue resides in the MailController component, specifically within the MailHandler functionality. The vulnerability arises from improper handling of the filePath argument, allowing remote attackers to traverse directories and access files outside of the intended directory structure. This exploitation could lead to unauthorized reading of sensitive files on the server.

Impact

Exploitation of this vulnerability allows for arbitrary file reading, enabling attackers to exfiltrate sensitive information from the server.

Reproduction

The vulnerability can be reproduced by sending a request to the /demo/mail/sendMessageWithAttachment or /demo/mail/sendMessageWithAttachments endpoints on the MailController. These endpoints do not require authentication and allow the inclusion of arbitrary file paths as attachments, which will be read and processed by the server.

Added: Jun 30, 2025, 6:25 PM
Updated: Jun 30, 2025, 7:29 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.7
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.