Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108839 Overview
CVE-2026-108839 is a link-following vulnerability [CWE-59] in thClaws versions through 0.141.0. The flaw resides in the post_inputs handler of the v1 API endpoint POST /v1/inputs. An attacker who plants a symbolic link beneath the allowed inputs/ prefix can redirect later authenticated uploads to arbitrary paths. The daemon follows the symlink and writes or truncates files outside the workspace with daemon privileges. This expands the blast radius of a single upload beyond the intended workspace boundary.
Critical Impact
Authenticated uploads to POST /v1/inputs can overwrite or truncate arbitrary files reachable by the daemon process, enabling integrity and availability impact outside the workspace.
Affected Products
- thClaws through version 0.141.0
- crates/core/src/api_v1/artifacts.rs component implementing the post_inputs handler
- Any deployment exposing the thClaws v1 API POST /v1/inputs endpoint
Discovery Timeline
- 2026-10-11 - CVE-2026-108839 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-108839
Vulnerability Analysis
The post_inputs handler accepts uploads under the inputs/ prefix inside a workspace directory. The handler validates that the submitted path begins with the allowed prefix but does not resolve or reject symbolic links within that prefix before opening the destination file. When the daemon opens the target for writing, the operating system follows any existing symlink to its final target.
If an attacker has previously placed a symlink under inputs/ pointing to a path outside the workspace, a subsequent authenticated upload writes to that external path. Because the daemon runs with its own service privileges, the write occurs regardless of the authenticated client's own file permissions. This is a classic time-of-check to time-of-use (TOCTOU) class issue combined with unsafe link resolution.
Impact is limited to integrity and availability. The attacker cannot directly read file contents through this path, but can overwrite or truncate daemon-reachable files such as configuration, logs, or state files.
Root Cause
The root cause is missing symlink handling in the artifact write path within crates/core/src/api_v1/artifacts.rs. The code validates the logical path prefix but does not open the file with symlink-refusing flags such as O_NOFOLLOW, nor does it canonicalize the final path and re-check containment against the workspace root.
Attack Vector
Exploitation requires an authenticated user to upload content via POST /v1/inputs and the prior ability to place a symlink beneath the inputs/ directory. The symlink can be planted through any earlier legitimate or semi-privileged write primitive to that directory. Once staged, any subsequent upload targeting the symlinked name causes the daemon to write to the external target path.
Refer to the GitHub source code artifact, the HackMD symlink escape analysis, and the VulnCheck advisory for thClaws for the vulnerable code region and exploitation walkthrough.
Detection Methods for CVE-2026-108839
Indicators of Compromise
- Unexpected symbolic links present in the thClaws workspace inputs/ directory, especially links whose target resolves outside the workspace root.
- File modification timestamps on daemon-owned files outside the workspace that correlate with POST /v1/inputs request times in access logs.
- Truncated or corrupted configuration, state, or log files owned by the thClaws daemon user.
Detection Strategies
- Enumerate the workspace recursively and flag any entry where lstat reports a symlink and the resolved target is not contained within the workspace root.
- Correlate thClaws API request logs for POST /v1/inputs with filesystem audit events such as Linux auditdpath records to identify writes outside the configured workspace.
- Compare the EPSS score of 0.251% (percentile 15.359, as of 2026-10-16) against your internal risk thresholds to prioritize scanning cadence.
Monitoring Recommendations
- Enable filesystem audit rules on the thClaws daemon user to log all open calls with write flags and surface those targeting paths outside the workspace.
- Alert on creation of any symbolic link under inputs/ whose target uses absolute paths or .. traversal.
- Monitor integrity of sensitive daemon-adjacent files such as service configuration and credential stores using file integrity monitoring.
How to Mitigate CVE-2026-108839
Immediate Actions Required
- Restrict network exposure of the thClaws v1 API so only trusted authenticated clients can reach POST /v1/inputs.
- Audit the workspace inputs/ directory for existing symlinks and remove any whose target resolves outside the workspace.
- Run the thClaws daemon under the least-privileged service account and constrain its filesystem access using mandatory access controls or systemd sandboxing.
Patch Information
No fixed version is referenced in the NVD entry at the time of publication. The advisory describes the vulnerability as present in thClaws through 0.141.0. Monitor the thClaws GitHub repository and the VulnCheck advisory for thClaws for a patched release that resolves symlink handling in post_inputs.
Workarounds
- Place the thClaws workspace on a dedicated filesystem or bind-mount so that symlink traversal cannot reach sensitive paths such as /etc, service configuration, or secrets directories.
- Deploy the daemon inside a container or chroot that does not expose any writable paths other than the workspace itself.
- Apply mandatory access control profiles (AppArmor or SELinux) that confine the daemon's write access to the workspace directory, blocking symlink-redirected writes to external targets.
# Example AppArmor-style restriction limiting daemon writes to the workspace
/opt/thclaws/bin/thclaws {
/var/lib/thclaws/workspace/** rw,
deny /etc/** w,
deny /var/log/** w,
deny /root/** rw,
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

