CVE-2026-49958
CVE-2026-49958 — Hermes WebUI < 0.51.303 TOCTOU Race Condition via git_discard
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.
Published Updated Sources: cvelistV5, VulnCheck
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
5.0
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.0 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-367
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /workspace_git.py.
References
5 on the record
- github.com/nesquena/hermes-webui/releases/tag/v0.51.303
release-notes
- github.com/nesquena/hermes-webui/pull/3702
issue-tracking, patch
- github.com/nesquena/hermes-webui/pull/3756
issue-tracking, patch
- github.com/nesquena/hermes-webui/commit/4580f584964d640b95c4ffc9245a21ab926bec73
patch
- www.vulncheck.com/advisories/hermes-webui-toctou-race-condition-via-git-discard
third-party-advisory
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2023-35311 Microsoft Outlook Security Feature Bypass VulnerabilityCVSS 8.8 · CISA KEV
- CVE-2025-22224 VMware ESXi and Workstation TOCTOU Race Condition VulnerabilityCVSS 8.2 · CISA KEV
- CVE-2026-119977 WordPress Core 4.7.0 - 7.1.3 - Unauthenticated Upgrade-Window Staged-Installer Remote Code ExecutionCVSS 8.1 · CISA KEV
- CVE-2025-38352 Linux Kernel Time-of-Check Time-of-Use (TOCTOU) Race Condition VulnerabilityCVSS 7.4 · CISA KEV
- CVE-2015-3246 Red Hat Libuser Race Condition VulnerabilityCVSS 7.2 · CISA KEV
- CVE-2024-30088 Microsoft Windows Kernel TOCTOU Race Condition VulnerabilityCVSS 7.0 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.