---
id: "CVE-2026-129247"
page: "https://infrastack.ai/live/CVE-2026-129247"
kind: "vulnerability"
aliases: ["CVE-2026-129247"]
title: "RuoYi: code generator path traversal via className lets files be written"
severity: "medium"
cvss: 5.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["java", "package", "ruoyi", "self-hosted", "spring"]
not_affected_if: ["generator-disabled", "unaffected-version"]
published_at: "2026-11-14T11:17:06+00:00"
first_seen_at: "2026-11-14T11:28:52+00:00"
updated_at: "2026-11-14T11:30:37+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129247", "first_seen_at": "2026-11-14T11:28:52+00:00"}]
exploit_sources: []
---

# RuoYi: code generator path traversal via className lets files be written

Link for people: https://infrastack.ai/live/CVE-2026-129247 (this .md is for agents)

RuoYi, a Java admin framework, has a path traversal flaw in its code generator: the className argument in VelocityUtils.getFileName is not sanitised. A remote attacker can use it to point generated file output outside the intended directory.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the RuoYi version in use (pom.xml or the project's version file); versions up to and including `4.8.3` are listed as affected.
- Confirm whether the code generator module (VelocityUtils.java) is deployed in the running application.

## Timeline

- 2026-11-14T11:28:52+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129247

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
