{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49958","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2026-06-02T16:30:15.233Z","datePublished":"2026-06-09T16:35:42.411Z","dateUpdated":"2026-07-14T21:33:30.028Z"},"containers":{"cna":{"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2026-07-14T21:33:30.028Z"},"title":"Hermes WebUI < 0.51.303 TOCTOU Race Condition via git_discard","descriptions":[{"lang":"en","value":"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."}],"tags":["x_open-source"],"datePublic":"2026-06-06T00:00:00.000Z","problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-367","description":"Time-of-check Time-of-use (TOCTOU) Race Condition","type":"CWE"}]}],"affected":[{"defaultStatus":"affected","packageURL":"pkg:github/nesquena/hermes-webui","vendor":"nesquena","product":"hermes-webui","repo":"https://github.com/nesquena/hermes-webui","versions":[{"status":"affected","version":"0","versionType":"semver","lessThan":"0.51.303"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:get-hermes:hermes_web_ui:*:*:*:*:*:*:*:*","versionEndExcluding":"0.51.303"}]}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"ACTIVE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":4.3,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"HIGH","version":"3.1","baseSeverity":"MEDIUM","baseScore":5,"vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:H"}}],"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"]},{"url":"https://github.com/nesquena/hermes-webui/pull/3756","tags":["issue-tracking"]},{"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"]}],"credits":[{"lang":"en","value":"Chia Min Jun Lennon","type":"finder"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"vulncheck"}},"adp":[{"references":[{"url":"https://github.com/nesquena/hermes-webui/pull/3702","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-09T18:26:30.104471Z","id":"CVE-2026-49958","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-06-09T18:26:54.848Z"}}]}}