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

Published Jun 9, 2026
·
Updated

Hermes WebUI before version 0.51.303 contains a time-of-check time-of-use (TOCTOU) race condition vulnerability in the gitdiscard function within api/workspacegit.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 saferesolvews() 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.

Affected Software

1 affected component
Hermes Hermes WebUI<0.51.303

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Hermes WebUI to a version that resolves this vulnerability.

    Fixed in 0.51.303
  2. Compensating control

    Temporarily restrict access to Hermes WebUI endpoints that can trigger the workspace git discard/delete functionality to trusted users until the upgrade to 0.51.303 is applied.

Event History

Jun 9, 2026
CVE Published
via MITRE·04:35 PM
Data Sourced
via MITRE·04:35 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-49958?

CVE-2026-49958 has a severity rating of medium, classified as 4.3.

2

What does CVE-2026-49958 affect?

CVE-2026-49958 affects versions of Hermes WebUI prior to 0.51.303.

3

How do I fix CVE-2026-49958?

To fix CVE-2026-49958, update Hermes WebUI to version 0.51.303 or later.

4

What type of vulnerability is CVE-2026-49958?

CVE-2026-49958 is classified as a time-of-check time-of-use (TOCTOU) race condition vulnerability.

5

What can attackers do with CVE-2026-49958?

Attackers exploiting CVE-2026-49958 can delete files outside the configured workspace boundary.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203