CVE-2026-49958
CWE-367Published: June 9, 2026· Updated: Jun 9, 2026
Official Description
Hermes WebUI before version 0.51.303 contains a time-of-check time-of-use (TOCTOU) race condition vulnerability in the git_discard function within api/workspace_git.py that allows attackers to delete files outside the configured workspace boundary by replacing a validated path component with a symlink after validation but before deletion. Attackers can substitute a workspace-controlled path component with a symlink pointing to an external directory between the safe_resolve_ws() validation step and the subsequent Path.unlink() or shutil.rmtree() deletion call, causing the delete operation to follow the symlink and remove arbitrary files outside the workspace.
Technical Analysis
CVE-2026-49958 requires local access, meaning attackers must already have a foothold on the target system.
Exploitation requires low privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
A successful exploit results in availability disruption (denial of service), with a CVSS base score of 5.0.
CVSS v3.1 Vector Breakdown
Exploit & PoC Resources
All References (6)
Quick Facts
Related CVEs (CWE-367)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2026-49958 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts