{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-49958","id":"CVE-2026-49958","title":"Hermes WebUI < 0.51.303 TOCTOU Race Condition via git_discard","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 compon","descriptionLong":"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":"2026-06-09T16:35:42.411Z","updated":"2026-11-09T02:47:15.271694722Z","reserved":"2026-06-02T16:30:15.233Z","status":"Deferred","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":4.3,"vector":"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","rating":"medium","source":"VulnCheck"},"metrics":[{"version":"4.0","score":4.3,"vector":"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","rating":"medium","source":"VulnCheck"},{"version":"4.0","score":4.3,"vector":"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","rating":"medium","source":"vulncheck.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:H","rating":"medium","source":"VulnCheck"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:H","rating":"medium","source":"vulncheck.com"}],"rating":"medium","products":["nesquena hermes-webui"],"affectedProducts":[{"vendor":"nesquena","product":"hermes-webui","defaultStatus":"affected","versions":[{"status":"affected","version":"0","versionType":"semver","lessThan":"0.51.303"}],"platforms":[]}],"packages":[],"cwes":["CWE-367"],"aliases":[],"references":[{"url":"https://github.com/nesquena/hermes-webui/releases/tag/v0.51.303","tags":["release-notes","advisory"]},{"url":"https://github.com/nesquena/hermes-webui/pull/3702","tags":["issue-tracking","patch","exploit","fix"]},{"url":"https://github.com/nesquena/hermes-webui/pull/3756","tags":["issue-tracking","patch","fix"]},{"url":"https://github.com/nesquena/hermes-webui/commit/4580f584964d640b95c4ffc9245a21ab926bec73","tags":["patch","fix"]},{"url":"https://www.vulncheck.com/advisories/hermes-webui-toctou-race-condition-via-git-discard","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49958.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49958","tags":["advisory"]},{"url":"https://github.com/nesquena/hermes-webui","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00081,"epssPercentile":0.00192,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-49958","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49958","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-49958","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-49958","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}