{"id":"CVE-2026-49958","published":"2026-06-09T16:35:42Z","modified":"2026-11-08T14:04:59Z","title":"Hermes WebUI < 0.51.303 TOCTOU Race Condition via git_discard","vendor":"nesquena","product":"hermes-webui","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00105,"percentile":0.0028,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/nesquena/hermes-webui/releases/tag/v0.51.303","tags":["release-notes"]},{"url":"https://github.com/nesquena/hermes-webui/pull/3702","tags":["issue-tracking","patch"]},{"url":"https://github.com/nesquena/hermes-webui/pull/3756","tags":["issue-tracking","patch"]},{"url":"https://github.com/nesquena/hermes-webui/commit/4580f584964d640b95c4ffc9245a21ab926bec73","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/hermes-webui-toctou-race-condition-via-git-discard","tags":["third-party-advisory"]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":0.06},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"nesquena","affectedVersions":[{"vendor":"nesquena","product":"hermes-webui","versions":["< 0.51.303"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-09T18:26:30.104471Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-35706","exploited":false,"provenance":"source"}}