JeecgBoot Path Traversal Vulnerability in Retrieval-Augmented Generation Module

Vulnerability

A path traversal vulnerability has been identified in JeecgBoot versions prior to 3.9.0, specifically within the Retrieval-Augmented Generation module. The issue arises in the '/airag/knowledge/doc/edit' file, where the 'filePath' parameter can be manipulated to traverse directories. This vulnerability allows authenticated attackers to access arbitrary local files outside the web root, potentially leading to unauthorized information disclosure.

Impact

Exploitation of this vulnerability allows for restricted arbitrary file read, where the application is tricked into reading files outside of its intended directory, as long as those files have the right extensions.

Reproduction

To reproduce this vulnerability, log into the JeecgBoot application and navigate to the AI RAG module. Create a new knowledge base and upload a file. Then, send a request to the '/jeecgboot/airag/knowledge/doc/edit' endpoint with a JSON payload that includes a 'filePath' value crafted to include directory traversal sequences, such as '../'. If successful, the response will contain the contents of the traversed file, demonstrating the exploitation of the path traversal vulnerability.

Added: Feb 7, 2026, 9:18 PM
Updated: Feb 7, 2026, 9:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
0.8
exploitability
6.2
remediation
0.0
relevance
2.8
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.