InstructLab Path Traversal Vulnerability Allowing Arbitrary File Write

Vulnerability

A path traversal vulnerability has been identified in InstructLab, specifically within the chat session handler. This vulnerability arises from an unsanitized 'logs_dir' parameter, which can be manipulated by a local attacker. Exploiting this flaw allows the creation of arbitrary directories and the writing of files to any location on the system. Such actions could lead to unauthorized modification or disclosure of data.

Impact

Exploitation of this vulnerability could result in unauthorized creation of directories and writing of files, potentially allowing local attackers to modify or access sensitive data.

Reproduction

The vulnerability can be reproduced by manipulating the 'logs_dir' parameter in the chat session handler. This can be done by sending a crafted request that includes a path traversal payload, which exploits the lack of proper validation on the 'logs_dir' parameter. Once the payload is accepted, arbitrary directories can be created and files can be written to locations of the attacker's choosing.

Added: Apr 22, 2026, 1:18 PM
Updated: Apr 22, 2026, 1:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
3.6
remediation
0.0
relevance
6.5
threat
1.6
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.