CVE-2026-13509
Deferred Deferred - Pending Action

Path Traversal in RAGapp Knowledge File Handler

Vulnerability report for CVE-2026-13509, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-28

Last updated on: 2026-06-29

Assigner: VulDB

Description

A vulnerability has been found in RAGapp up to 0.1.5. Affected is the function FileHandler.upload_file/FileHandler.remove_file of the file src/ragapp/backend/controllers/files.py of the component Knowledge File Handler. Such manipulation leads to path traversal. The attack can be executed remotely. The exploit has been disclosed to the public and may be used. The pull request to fix this issue awaits acceptance.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-28
Last Modified
2026-06-29
Generated
2026-07-19
AI Q&A
2026-06-29
EPSS Evaluated
2026-07-17
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ragapp ragapp to 0.1.5 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in RAGapp versions up to 0.1.5, specifically in the functions FileHandler.upload_file and FileHandler.remove_file within the Knowledge File Handler component. It allows an attacker to perform a path traversal attack by manipulating file paths. This means an attacker can potentially access or modify files outside the intended directories. The attack can be executed remotely, and a fix is pending acceptance.

Detection Guidance

This vulnerability can be detected by monitoring attempts to upload or delete files using filenames containing path traversal sequences such as "../" or absolute paths that try to escape the intended data directory.

Specifically, you can check logs or intercept requests to the management file upload endpoint (POST /api/management/files) for suspicious filenames.

Commands to detect such attempts might include searching web server or application logs for path traversal patterns. For example, using grep on log files:

  • grep -E '\.\./|/etc/passwd|/absolute/path' /path/to/ragapp/logs/access.log
  • tcpdump or Wireshark filters to capture HTTP POST requests containing suspicious filenames in the payload.

Additionally, reviewing the source code or running regression tests that attempt to upload or delete files with traversal sequences can help confirm the vulnerability.

Impact Analysis

The vulnerability can allow an attacker to access or modify files on the affected system that they should not have permission to. This could lead to unauthorized disclosure of sensitive information, data tampering, or disruption of service. Since the attack can be performed remotely, it increases the risk of exploitation without physical access to the system.

Compliance Impact

The vulnerability in RAGapp allows path traversal attacks that enable malicious users to upload or delete files outside the intended data directory. This can lead to unauthorized data manipulation, including potential data pollution or overwriting critical files.

Such unauthorized access and manipulation of files could impact compliance with standards and regulations like GDPR and HIPAA, which require strict controls over data integrity, confidentiality, and access. If sensitive or personal data is stored or processed by the affected system, exploitation of this vulnerability could lead to data breaches or unauthorized data exposure, violating these regulations.

Since the application relies on external authentication and does not enforce authorization internally, the risk of unauthorized access is heightened if the management API is exposed, further increasing compliance risks.

Mitigation Strategies

Immediate mitigation steps include restricting access to the management file upload API endpoint to trusted users only, ideally behind an authenticated API gateway or firewall.

Avoid exposing the management API publicly until the fix is applied.

Apply the patch from the pull request that fixes the vulnerability by rejecting filenames containing path separators, normalizing filenames to basenames, and ensuring file operations are confined within the designated data directory.

If patching immediately is not possible, consider implementing server-side filename validation or generating server-side storage names instead of trusting client-provided filenames.

Monitor for suspicious file upload or deletion activity and review logs regularly.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-13509. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart