PT-2026-84855 · Hermes · Hermes
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Hermes version 0.21.0
Description
An issue exists where coding agents execute
git status or git diff for context gathering before trust prompts are presented to the user. If a repository is delivered as files (such as via zip, sync, or USB) rather than through a clone, a malicious .git/config file can be included. By setting the core.fsmonitor variable, an attacker can achieve remote code execution (RCE) on the host machine during the first index refresh, as the subprocess often runs unsandboxed.Recommendations
Update Hermes to a version that includes the fix implemented in commit f6234d0, which utilizes a scrubbed
noninteractive git env and the --no-ext-diff/--no-textconv flags on diff paths.
As a temporary mitigation, execute git commands using git -c core.fsmonitor=false for every background call.Exploit
Fix
RCE
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Hermes