Skip to main content

RuoYi CVE-2026-129247

| EUVDEUVD-2026-125893 MEDIUM
Path Traversal (CWE-22)
2026-11-14 VulDB GHSA-pmfm-qq4h-fg4c
5.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as privileged admin user
  2. Delivery
    Open Code Generator feature
  3. Exploit
    Inject traversal sequence in className argument
  4. Execution
    VelocityUtils.getFileName builds escaped path
  5. Impact
    Read 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

RuoYi 4.8.3
RuoYi 4.8.1
RuoYi 4.8.0
RuoYi 4.8.2

Affected Packages

euvd ruoyi no fix

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

Vendor (VulDB) PRIMARY 5.1 MEDIUM
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
vuln.today AI 3.8 LOW

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.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 61% exploitable
Prevalence
Medium
Popular open-source Java admin/rapid-dev framework, heavily used mainly in China
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Ruoyi

View all
CVE-2025-28412 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the /editSave method in SysNoticeControlle

CVE-2025-28410 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the cancelAuthUserAll method does not prop

CVE-2025-28406 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobLogId parameter. Rated critical sev

CVE-2025-28405 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the changeStatus method. Rated critical se

CVE-2025-28402 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobId parameter. Rated critical severi

CVE-2023-49371 CRITICAL POC
9.8 Dec 01

RuoYi up to v4.6 was discovered to contain a SQL injection vulnerability via /system/dept/edit. Rated critical severity

CVE-2022-4566 CRITICAL POC
9.8 Dec 16

A vulnerability, which was classified as critical, has been found in y_project RuoYi 4.7.5. Rated critical severity (CVS

CVE-2025-70985 CRITICAL POC
9.1 Jan 23

RuoYi v4.8.2 has an access control flaw in the update function allowing unauthorized attackers to modify arbitrary data

CVE-2025-28409 HIGH POC
8.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the add method of the /add/{parentId} endp

CVE-2025-28407 HIGH POC
8.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the edit method of the /edit/{dictId} endp

CVE-2025-56396 HIGH POC
8.8 Nov 26

An issue was discovered in Ruoyi 4.8.1 allowing attackers to gain escalated privileges due to the owning department havi

CVE-2022-23868 HIGH POC
7.8 Mar 30

RuoYi v4.7.2 contains a CSV injection vulnerability through ruoyi-admin when a victim opens .xlsx log file. Rated high s

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy