CVE-2025-6925 Dromara RuoYi-Vue-Plus Mail MailController.java path traversal

Medium 6.9 Published Updated

Remote attackers can exploit a path traversal vulnerability in the Mail Controller to read arbitrary files from the server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-6925?

CVE-2025-6925 is a medium-severity path traversal vulnerability in Dromara RuoYi-Vue-Plus, published on 30 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability has been found in Dromara RuoYi-Vue-Plus 5.4.0 and classified as critical. Affected by this vulnerability is an unknown functionality of the file /src/main/java/org/dromara/demo/controller/MailController.java of the component Mail Handler. The manipulation of the argument filePath leads to path traversal. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-22

Which versions are affected by CVE-2025-6925?

It affects 1 product.

Products include Dromara Ruoyi-Vue-Plus.

How do I fix CVE-2025-6925?

No fix has been published for CVE-2025-6925 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-6925 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6925 exists.

Sources

Also known as GHSA-6m7v-gmwr-qcxx.

Is CVE-2025-6925 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free