Security Resilience

CVE-2025-2040

Iocoder Ruoyi-Vue-Pro 2.4.1

Public PoC
Published
06 March 2025
Modified
07 July 2025
CVSS Score v4 5.3
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0049 43th percentile
Risk Priority 33 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-2040 is a medium-severity Incomplete Filtering of Special Elements (CWE-791) vulnerability in Iocoder Ruoyi-Vue-Pro. Its CVSS base score is 5.3 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 43th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

A vulnerability classified as critical was found in zhijiantianya ruoyi-vue-pro 2.4.1. Affected by this vulnerability is an unknown functionality of the file /admin-api/bpm/model/deploy. The manipulation leads to improper neutralization of special elements used in a template engine. The attack can…

more

be launched remotely. The exploit has been disclosed to the public and may be used.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
T1584.004 Server Resource Development
Adversaries may compromise third-party servers that can be used during targeting.
T1056.003 Web Portal Capture Collection
Adversaries may install code on externally facing portals, such as a VPN login page, to capture and transmit credentials of users who attempt to log into the service.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-2744Same product: Iocoder Ruoyi-Vue-Pro
CVE-2025-2707Same product: Iocoder Ruoyi-Vue-Pro
CVE-2025-2743Same product: Iocoder Ruoyi-Vue-Pro
CVE-2025-2742Same product: Iocoder Ruoyi-Vue-Pro
CVE-2025-2708Same product: Iocoder Ruoyi-Vue-Pro
CVE-2025-10988Same product: Iocoder Ruoyi-Vue-Pro
CVE-2025-10276Same product: Iocoder Ruoyi-Vue-Pro
CVE-2025-10278Same product: Iocoder Ruoyi-Vue-Pro
CVE-2026-5559Shared CWE-1336, CWE-791
CVE-2025-6761Shared CWE-1336, CWE-791

Affected Assets

iocoder
ruoyi-vue-pro
2.4.1

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.3.7
  • V1.3.10

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and static analysis can discover missing neutralization of template directives.

Input validation directly requires complete filtering of special elements on received data before further processing or forwarding.

Security engineering principles require use of safe templating APIs and proper escaping of external input.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require complete input filtering and sanitization to prevent this weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development and acceptance can detect incomplete filtering but does not itself implement the filtering.

prevents

Training helps developers write more complete filters (e.g., using global match modifiers, testing edge cases), but the defect is a code-level implementation mistake that arises the same with or without awareness, so only a minority of instances are prevented.

prevents

Secure coding standards mandate complete filtering and escaping of special elements, directly eliminating CWE-791.

prevents

A.8.30 governs the contractual and oversight relationship with an outsourced developer, not the implementation of filtering logic itself; the weakness is introduced during coding, which the clause mandates but does not perform.

finds

A.8.8's reach is DISCLOSURE — it sees template injection only where it surfaces as a published advisory in a third-party component (the observed CVEs show SSTI/CSTI does commonly appear as CVEs in libraries and engines), but the bulk of template injection lives in first-party application code that A.8.8's disclosure-based programme does not reach, mirroring the A.8.8 -> CWE-89 anchor at the same rung.

References