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.
CVE-2026-49958
Score 5.0 from GitHub Security Advisory published 2026-06-09. the CNA's CVSS baseline 5.0; sources differ by 0.0.
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 5.0
- EG Score
- 5.0(high)
- EPSS
- 0.3%
- KEV
- Not listed
Published
June 9, 2026
Last Modified
June 23, 2026
Advisory Details (5)
Auto-updated Jun 14, 2026[security] fix(git): anchor discard untracked deletes
Upstream fix in progress (PR #3702 · nesquena/hermes-webui, state=closed)
https://github.com/nesquena/hermes-webui/pull/3702Hermes WebUI < 0.51.303 TOCTOU Race Condition via git_discard | Advisories | VulnCheck
https://www.vulncheck.com/advisories/hermes-webui-toctou-race-condition-via-git-discardv0.51.303
Patch available: nesquena/hermes-webui v0.51.303
https://github.com/nesquena/hermes-webui/releases/tag/v0.51.303Release v0.51.303 — Release JS (stage-p1a — cron toggle + config var expansion + git-discard hardening)
Patch available: nesquena/hermes-webui v0.51.379 (PR #3756 merged 2026-06-07)
https://github.com/nesquena/hermes-webui/pull/3756commit 4580f584964d (nesquena/hermes-webui)
Patch available: nesquena/hermes-webui v0.51.379 (contains commit 4580f584964d)
https://github.com/nesquena/hermes-webui/commit/4580f584964d640b95c4ffc9245a21ab926bec73Vendor Advisories for CVE-2026-49958(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 15× in last 7d / 76× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-05 15:20 UTCEG score recompute
- 2026-07-05 15:19 UTCGHSA enrichment
- 2026-07-04 15:03 UTCEG score recompute
- 2026-07-04 15:03 UTCGHSA enrichment
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 15:47 UTCEG score recompute
- 2026-07-03 15:47 UTCGHSA enrichment
- 2026-07-02 14:04 UTCEG score recompute
- 2026-07-02 14:04 UTCGHSA enrichment
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-07-01 14:48 UTCEG score recompute
- 2026-07-01 14:48 UTCGHSA enrichment
- 2026-06-30 15:29 UTCEG score recompute
- 2026-06-30 15:28 UTCGHSA enrichment
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 10:41 UTCEG score recompute
- 2026-06-29 10:41 UTCGHSA enrichment
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 11:18 UTCEG score recompute
- 2026-06-28 11:18 UTCGHSA enrichment
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 12:02 UTCEG score recompute
Show 51 moreShow fewer
- 2026-06-27 12:01 UTCGHSA enrichment
- 2026-06-26 12:37 UTCEG score recompute
- 2026-06-26 12:37 UTCGHSA enrichment
- 2026-06-25 11:00 UTCEG score recompute
- 2026-06-25 10:59 UTCGHSA enrichment
- 2026-06-24 11:44 UTCEG score recompute
- 2026-06-24 11:43 UTCGHSA enrichment
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 10:59 UTCEG score recompute
- 2026-06-23 10:59 UTCGHSA enrichment
- 2026-06-22 11:43 UTCEG score recompute
- 2026-06-22 11:42 UTCGHSA enrichment
- 2026-06-21 10:34 UTCEG score recompute
- 2026-06-21 10:34 UTCGHSA enrichment
- 2026-06-20 10:05 UTCEG score recompute
- 2026-06-20 10:04 UTCGHSA enrichment
- 2026-06-19 10:45 UTCEG score recompute
- 2026-06-19 10:45 UTCGHSA enrichment
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 11:14 UTCEG score recompute
- 2026-06-18 11:13 UTCGHSA enrichment
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-17 11:27 UTCEG score recompute
- 2026-06-17 11:27 UTCGHSA enrichment
- 2026-06-16 17:53 UTCEPSS rescore
- 2026-06-16 12:12 UTCEG score recompute
- 2026-06-16 12:11 UTCGHSA enrichment
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 12:55 UTCEG score recompute
- 2026-06-15 12:55 UTCGHSA enrichment
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-14 13:39 UTCEG score recompute
- 2026-06-14 13:39 UTCGHSA enrichment
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 14:23 UTCEG score recompute
- 2026-06-13 14:22 UTCGHSA enrichment
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 15:06 UTCEG score recompute
- 2026-06-12 15:05 UTCGHSA enrichment
- 2026-06-11 15:50 UTCEG score recompute
- 2026-06-11 15:50 UTCGHSA enrichment
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 22:19 UTCEPSS rescore
- 2026-06-10 16:33 UTCEG score recompute
- 2026-06-10 16:33 UTCGHSA enrichment
- 2026-06-09 17:17 UTCEG score recompute
- 2026-06-09 17:17 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-49958?
When was CVE-2026-49958 disclosed?
Is CVE-2026-49958 actively exploited?
What is the CVSS score of CVE-2026-49958?
How do I remediate CVE-2026-49958?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-49958
Is Your Infrastructure Affected by CVE-2026-49958?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.