CVE-2026-6855
Analyzed Analyzed - Analysis Complete

Path Traversal in InstructLab Chat Handler Enables Arbitrary File Write

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

Publication date: 2026-04-22

Last updated on: 2026-05-20

Assigner: Red Hat, Inc.

Description

A flaw was found in InstructLab. A local attacker could exploit a path traversal vulnerability in the chat session handler by manipulating the `logs_dir` parameter. This allows the attacker to create new directories and write files to arbitrary locations on the system, potentially leading to unauthorized data modification or disclosure.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-04-22
Last Modified
2026-05-20
Generated
2026-07-26
AI Q&A
2026-04-22
EPSS Evaluated
2026-07-25
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
redhat enterprise_linux_ai 3.0
redhat instructlab *

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

CVE-2026-6855 is a security flaw in InstructLab caused by improper handling of the `logs_dir` parameter in the chat session handler. The parameter is used without proper validation or sanitization when creating directories and writing files. This allows a local attacker to exploit path traversal sequences to create directories and write files anywhere on the system.

Detection Guidance

This vulnerability involves exploitation of the `logs_dir` parameter in the chat session handler to perform path traversal and create arbitrary directories or files. Detection can focus on monitoring unusual directory creation or file writes in unexpected locations on the system.

  • Check for unexpected directories or files created by the InstructLab process, especially outside of normal log directories.
  • Use file system monitoring tools like 'inotifywait' to watch for directory creation events triggered by the InstructLab application.
  • Search for suspicious usage of path traversal sequences (e.g., '../') in logs or parameters passed to the application.
  • Example command to find recently created directories or files by InstructLab user or process: `find / -user instructlab -ctime -1 -ls`
  • Example command to monitor directory creation in real-time (requires inotify-tools): `inotifywait -m -r -e mkdir /path/to/instructlab/logs`
Impact Analysis

This vulnerability can lead to unauthorized data modification or disclosure by allowing an attacker to write files and create directories anywhere on the affected system. Such actions could compromise system integrity and confidentiality, potentially enabling further attacks or data breaches.

Compliance Impact

The vulnerability allows a local attacker to write files and create directories at arbitrary locations on the system, potentially leading to unauthorized data modification or disclosure.

Such unauthorized data modification or disclosure could impact compliance with data protection standards and regulations like GDPR and HIPAA, which require safeguarding sensitive data against unauthorized access and ensuring data integrity.

However, the provided information does not explicitly discuss the direct impact on compliance with these standards.

Mitigation Strategies

Since the vulnerability arises from unsanitized use of the `logs_dir` parameter allowing path traversal, immediate mitigation steps include restricting access and usage of this parameter and monitoring for exploitation attempts.

  • Limit local user permissions to prevent unauthorized manipulation of the `logs_dir` parameter.
  • Apply strict input validation or sanitization on the `logs_dir` parameter if possible, or disable features that allow user control over this parameter.
  • Monitor system logs and file system changes for suspicious activity related to directory creation or file writes by InstructLab.
  • Keep the system and InstructLab installation isolated and restrict access to trusted users only until a patch is available.
  • Follow updates from the vendor or Red Hat Bugzilla for patches or official fixes.

Chat Assistant

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

EPSS Chart