Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-49958— Hermes WebUI < 0.51.303 TOCTOU Race Condition via git_discard

Quick assessment

Affected
nesquena hermes-webui
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Hermes Web UI是Nathan Esquenazi个人开发者的一个轻量级、暗色主题的自主智能体Web界面。 Hermes Web UI 0.51.303之前版本存在安全漏洞,该漏洞源于git_discard函数中的TOCTOU竞争条件问题,可能导致攻击者通过替换验证后的路径组件为符号链接删除工作空间边界外的文件。

CVSS 5.0 · Medium EPSS 0.10% · P1

Affected Version Matrix 1

VendorProduct Version RangeStatus
nesquena hermes-webui < 0.51.303 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-49958

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Hermes WebUI < 0.51.303 TOCTOU Race Condition via git_discard
Source: CVE Program / CVE List V5
Vulnerability 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 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
检查时间与使用时间(TOCTOU)的竞争条件
Source: CVE Program / CVE List V5
Vulnerability Title
Hermes Web UI 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Hermes Web UI是Nathan Esquenazi个人开发者的一个轻量级、暗色主题的自主智能体Web界面。 Hermes Web UI 0.51.303之前版本存在安全漏洞,该漏洞源于git_discard函数中的TOCTOU竞争条件问题,可能导致攻击者通过替换验证后的路径组件为符号链接删除工作空间边界外的文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
nesquena hermes-webui 0 ~ 0.51.303 -

II. Public POCs for CVE-2026-49958

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-49958

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-49958 (3)

Vendor Advisories for CVE-2026-49958 (1)

Vendor Pages for CVE-2026-49958 (1)

Same Patch Batch · nesquena · 2026-06-09 · 5 CVEs total

CVE-2026-49959 8.8 HIGH Hermes WebUI < 0.51.311 RCE via Git Configuration Injection
CVE-2026-49957 7.7 HIGH Hermes WebUI < 0.51.296 Workspace Boundary Bypass via api/workspace.py
CVE-2026-49956 6.5 MEDIUM Hermes WebUI < 0.51.269 Profile Isolation Bypass via sessions search
CVE-2026-49955 5.3 MEDIUM Hermes WebUI < 0.51.270 Resource Exhaustion via passkey/options

IV. Related Vulnerabilities

V. Comments for CVE-2026-49958

No comments yet


Leave a comment