Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as privileged admin user
-
DeliveryOpen Code Generator feature
-
ExploitInject traversal sequence in className argument
-
ExecutionVelocityUtils.getFileName builds escaped path
-
ImpactRead or write file outside intended directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated, highly-privileged (administrative) account with access to the RuoYi Code Generator component, as reflected by PR:H in the CVSS vector - this is not reachable by anonymous or low-privileged users. The specific trigger is manipulation of the 'className' argument processed by VelocityUtils.getFileName, which must be reachable through the Code Generator workflow. Limiting factors: administrative access to the code-generation feature is mandatory, the impacts are Low-severity file read/write rather than direct RCE, and the feature is typically a development/back-office tool, further narrowing the exposed population. |
| Impact | This is a moderate, privilege-gated issue rather than a high-urgency priority. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L) scores 5.1 and critically carries PR:H, meaning exploitation requires an already highly-privileged (administrative) account - the RuoYi Code Generator is an authenticated back-office feature, not an anonymous endpoint. There is no CISA KEV listing, no EPSS probability was provided in the input, and no confirmed working exploit code is referenced (the only references are VulDB database/CTI/submission pages, not a published PoC). The vuln.today decision label is 'this_month', consistent with a patch-on-normal-cadence item rather than act_now/emergency. The impact triad is uniformly Low, reflecting a path-traversal in filename handling rather than direct code execution. Net: a genuine but low-to-moderate bug whose real-world risk is bounded by the requirement for administrative privileges and by single-source (VulDB only) reporting; it is not a widespread-exploitation emergency. Missing data to note explicitly: no EPSS score supplied, no independent NVD/vendor advisory, and no fixed version identified - 'up to 4.8.3' marks the affected range but no patched release is stated in the available data. |
| Exploit ScenarioDerived | An attacker who already holds an administrative/privileged account on a RuoYi instance opens the Code Generator feature and supplies a crafted className value containing directory-traversal sequences. Because VelocityUtils.getFileName builds an output file path from this argument without sufficient sanitization, the generated file name escapes the intended directory, allowing a file to be read or written outside the expected location. No public working exploit code is identified at time of analysis; the attack is network-reachable but constrained by the high-privilege requirement. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 14, 2026
Path traversal in the Code Generator component of yangzongzhuan RuoYi (versions up to and including 4.8.3) lets a remote, highly privileged administrator manipulate the className argument processed by VelocityUtils.getFileName so that file paths are resolved outside the intended code-generation directory, yielding low-severity confidentiality, integrity and availability impact. The flaw is reachable over the network but requires an authenticated account with access to the code-generation feature (PR:H), so the exposed population is largely back-office and development deployments rather than internet-facing user traffic. No CISA KEV entry and no public exploit code were identified at the time of analysis, and the CVSS 4.0 base score is 5.1; the vendor references supplied are VulDB entries only.
RemediationAI
No vendor-released patch was identified at time of analysis, and the supplied references point only to VulDB entries (https://vuldb.com/vuln/437278 and https://vuldb.com/cve/CVE-2026-129247) rather than to a RuoYi release or commit, so confirm fix availability with the upstream project before relying on an upgrade. Until a fix is confirmed, the practical control follows the assessed prerequisite: keep the Code Generator module out of production deployments and restrict it, where it is genuinely needed, to a small set of trusted administrative accounts, since PR:H means anonymous and low-privileged users cannot reach the vulnerable function - the trade-off is loss of template-driven code generation for regular staff. If the module must remain enabled, log and review requests carrying path-traversal sequences in the className parameter and treat any resulting file writes outside the generator's output directory as a compromise indicator; none of these measures removes the underlying path-construction weakness, they only reduce who can exploit it.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
RuoYi is a Java-based rapid-development framework whose Code Generator module renders Velocity templates into source files. VelocityUtils is the helper class that derives output file names/paths for those templates, and its getFileName method consumes a className argument. Because that argument originates from the request and reaches file-path construction, it is a CWE-22 (Improper Limitation of a Pathname to a Restricted Directory, i.e. path traversal) class defect: crafted path sequences can escape the intended output directory, affecting files the process can read or write. The supplied sources do not detail the exact validation or normalization gap in getFileName, nor which concrete file operations are reachable; the CPE entry cpe:2.3:a:yangzongzhuan:ruoyi:*:*:*:*:*:*:*:* records the whole RuoYi product line as the affected range with the description bounding it at 4.8.3, and the triggering request path through the Code Generator workflow is likewise not enumerated in the available references.
Know when Ruoyi gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Network-reachable admin feature with low attack complexity but requiring high privileges (PR:H); path traversal yields limited file read/write (C:L/I:L), no availability impact and no scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
A security flaw has been discovered in yangzongzhuan RuoYi up to 4.8.3. Impacted is the function VelocityUtils.getFileName of the file VelocityUtils.java of the component Code Generator. Performing a manipulation of the argument className results in path traversal. The attack is possible to be carried out remotely.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the /editSave method in SysNoticeControlle
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the cancelAuthUserAll method does not prop
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobLogId parameter. Rated critical sev
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the changeStatus method. Rated critical se
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobId parameter. Rated critical severi
RuoYi up to v4.6 was discovered to contain a SQL injection vulnerability via /system/dept/edit. Rated critical severity
A vulnerability, which was classified as critical, has been found in y_project RuoYi 4.7.5. Rated critical severity (CVS
RuoYi v4.8.2 has an access control flaw in the update function allowing unauthorized attackers to modify arbitrary data
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the add method of the /add/{parentId} endp
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the edit method of the /edit/{dictId} endp
An issue was discovered in Ruoyi 4.8.1 allowing attackers to gain escalated privileges due to the owning department havi
RuoYi v4.7.2 contains a CSV injection vulnerability through ruoyi-admin when a victim opens .xlsx log file. Rated high s
EUVD-2026-125893
GHSA-pmfm-qq4h-fg4c
NVD
CVE.org
EPSS
VulDB
Exploit-DB