CVE-2026-49959: Hermes WebUI < 0.51.311 RCE via Git Configuration Injection

Published Jun 9, 2026
·
Updated

Hermes WebUI before version 0.51.311 contains a remote code execution vulnerability that allows authenticated attackers to execute arbitrary commands by placing malicious executable Git configuration in a workspace repository's .git/config file. Attackers can exploit Git subprocess invocations in api/workspacegit.py through vectors such as core.fsmonitor during git status, protocol.ext.allow with ext:: remotes during git fetch, credential.helper, core.askPass, core.gitProxy, or inherited environment variables including GITSSHCOMMAND to achieve arbitrary command execution on the host running the application.

Affected Software

1 affected component
Hermes Hermes WebUI<0.51.311

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.311
  2. Configuration

    Disable or restrict Git protocol.ext.allow use of ext:: remotes during git fetch invoked by api/workspace_git.py to prevent ext:: remote execution chains.

    Git protocol.ext.allow = ext:: (remove/disable extension execution via ext:: remotes)
  3. Configuration

    Ensure Git subprocess invocations used by api/workspace_git.py do not honor attacker-controlled credential.helper settings (disable/clear credential helpers for these subprocesses).

    Git credential.helper = (disable/ignore attacker-controlled credential helpers)
  4. Configuration

    Ensure Git subprocess invocations used by api/workspace_git.py do not use attacker-controlled core.askPass (disable/clear core.askPass for these subprocesses).

    Git core.askPass = (disable/ignore askPass)
  5. Configuration

    Ensure Git subprocess invocations used by api/workspace_git.py do not use attacker-controlled core.gitProxy (disable/clear core.gitProxy for these subprocesses).

    Git core.gitProxy = (disable/ignore git proxy)
  6. Compensating control

    Prevent/limit how Hermes WebUI interacts with untrusted workspace repositories so that attackers cannot supply malicious Git configuration in a repository’s .git/config (e.g., ensure only trusted repositories/workspaces are processed, and treat any user-controlled workspace Git content as untrusted before running git subprocesses).

  7. Compensating control

    Harden the execution environment for Git subprocesses invoked by api/workspace_git.py by removing/inhibiting inherited environment variables that can influence command execution (including GIT_SSH_COMMAND), so untrusted repository input cannot trigger arbitrary host commands.

Event History

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

Frequently Asked Questions

1

What is the severity of CVE-2026-49959?

CVE-2026-49959 has a high severity rating of 8.7.

2

How do I fix CVE-2026-49959?

To fix CVE-2026-49959, upgrade Hermes WebUI to version 0.51.311 or higher.

3

What type of vulnerability is CVE-2026-49959?

CVE-2026-49959 is a remote code execution vulnerability due to Git configuration injection.

4

Who can exploit CVE-2026-49959?

CVE-2026-49959 can be exploited by authenticated attackers.

5

What components are affected by CVE-2026-49959?

CVE-2026-49959 affects Hermes WebUI versions prior to 0.51.311.

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