CVE-2026-49958 json
Hermes WebUI < 0.51.303 TOCTOU Race Condition via git_discard
published 2026-06-09 5 mo ago modified 2026-11-08 25 h ago also EUVD-2026-35706
- cvss
- 5.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 0%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- nesquena hermes-webui 0.51.303
- github.com/nesquena/hermes-webui@4580f58 commit
- github.com/nesquena/hermes-webui#3702 pull request
- github.com/nesquena/hermes-webui#3756 pull request
- github.com/nesquena/hermes-webui/releases/tag/v0.51.303 release
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 5 mo ago
Exploit prediction
0.08% chance of exploitation in the next 30 days, higher than 0% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/nesquena/hermes-webui/pull/3702 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 4.3 | CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:A/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N |
| CNA | 3.1 | 5.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:H |
| CNA | 4.0 | 4.3 | CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:A/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected products
- nesquena hermes-webui
Classification
- Weakness
-
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
-
github.com
/nesquena/hermes-webui/pull/3702
issue-tracking, patch, exploit
-
github.com
/nesquena/hermes-webui/pull/3756
issue-tracking, patch
-
github.com
/nesquena/hermes-webui/commit/4580f584964d640b95c4ffc9245a21ab926bec73
patch
-
github.com
/nesquena/hermes-webui/releases/tag/v0.51.303
release-notes
-
vulncheck.com
/advisories/hermes-webui-toctou-race-condition-via-git-discard
third-party-advisory
Sources
- CVE List CVE-2026-49958
- NVD CVE-2026-49958
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.