CVE-2026-145356 in open-multi-agent
Summary
by MITRE • 12/05/2026
open-multi-agent 1.5.0 before 1.27.0 contains a sandbox escape vulnerability in resolvePathWithinCwd that allows attackers to access host files by committing .agent-workspace as a symlink to the filesystem root. Attackers can use prompt injection in repository content to make file_read retrieve .env files, SSH keys and cloud credentials, or abuse file_write and file_edit when enabled.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 12/05/2026
The vulnerability identified in open-multi-agent versions prior to 1.27.0 represents a critical sandbox escape mechanism rooted in improper handling of path resolution within the application's working directory context. Specifically, the flaw resides in the resolvePathWithinCwd function, which is designed to restrict file operations to a designated workspace or current working directory to prevent unauthorized access to host system files. However, due to insufficient validation and normalization of input paths, an attacker can manipulate this logic by creating a symbolic link named .agent-workspace that points directly to the filesystem root or other sensitive directories outside the intended sandbox boundary. This technique effectively bypasses the security controls meant to isolate the agent's file operations from the underlying host environment.
From a technical perspective, the core issue is an improper restriction of path traversal and symlink resolution. When the application processes requests for reading or writing files, it relies on resolvePathWithinCwd to verify that the target location remains within the allowed workspace. By exploiting the behavior of symbolic links during path normalization, particularly in environments where symlinks are resolved before access control checks are applied, an attacker can redirect file operations to arbitrary locations on the host system. This is a classic example of CWE-22: Improper Limitation of a Pathname to a Restricted Directory, which allows attackers to traverse outside restricted directories using relative path manipulation or symbolic link tricks. The vulnerability leverages the trust placed in the workspace directory structure, assuming that any file within it is safe for processing without verifying its actual physical location on disk.
The operational impact of this vulnerability is severe, as it grants an attacker full read and potentially write access to sensitive host files depending on the permissions under which the agent runs. If prompt injection techniques are employed against repository content or user inputs processed by the agent, attackers can force the file_read function to retrieve critical configuration files such as .env files containing database passwords, API keys, and other secrets. Furthermore, SSH private keys stored in standard locations like ~/.ssh/id_rsa become accessible, allowing for lateral movement within internal networks if those credentials are reused or have elevated privileges. In scenarios where file_write or file_edit capabilities are enabled, the risk escalates to arbitrary code execution or system compromise, as attackers could overwrite critical configuration files, inject malicious scripts into executable paths, or modify application logic to establish persistence mechanisms on the host machine.
This vulnerability aligns with several MITRE ATT&CK techniques that describe adversary behaviors in cloud and container environments. The initial access phase may involve T1059: Command and Scripting Interpreter if prompt injection is used to trigger the malicious file operations, while the exploitation of symlink logic corresponds to T1612: Create Backup Clone or similar path manipulation tactics often seen in lateral movement scenarios. Additionally, the theft of credentials falls under T1552: Unsecured Credentials, specifically targeting stored keys and configuration files. The ability to write arbitrary files maps closely to T1034: Remote File Copy or T1608: Stage Capabilities, depending on whether the goal is data exfiltration or establishing a foothold for further exploitation.
To mitigate this vulnerability, organizations must immediately upgrade open-multi-agent to version 1.27.0 or later where these path resolution checks have been hardened. In addition to upgrading, it is crucial to implement defense-in-depth strategies by restricting the file system permissions of the agent process so that even if a sandbox escape occurs, the attacker cannot access highly sensitive directories like /etc/shadow or root-owned configuration files. Running agents with minimal privileges and using read-only mounts for critical host paths can significantly reduce the blast radius. Furthermore, input validation should be enforced at multiple layers; applications must sanitize all user inputs to prevent prompt injection attacks that could trigger malicious file operations. Finally, enabling strict symlink policies within the operating system or container runtime environment, such as disabling symlinks in specific directories via mount options like nosymfollow, can provide an additional layer of protection against this class of path traversal vulnerabilities.