Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconHost malicious repo with crafted .git/config
-
DeliverySocial-engineer victim to open repo in Hermes Agent
-
ExploitVictim sends any chat message
-
InstallAgent internally calls git status
-
C2Git executes core.fsmonitor command
-
ExecuteInjected script runs in victim process context
-
ImpactExfiltrate environment secrets (API keys)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The victim must open a git repository containing a malicious |
| Impact | The CVSS 4.0 score of 8.6 (AV:N/AC:L/AT:N/PR:N/UI:A) accurately reflects a realistic attack requiring only that a victim open a malicious repository and issue any prompt - a one-step social-engineering bar achievable through supply chain, dependency confusion, or a shared repository link. The UI:A qualifier is the sole mitigation in the base vector; all other metrics are maximally permissive (no auth, no privilege, no attack complexity). Impact is severe: full C:H/I:H/A:H on the vulnerable system, with the specific aggravating factor that AI coding agent environments routinely hold high-value secrets (LLM API keys, cloud credentials) in process environment variables. A publicly available exploit writeup from manifold.security exists, lowering the skill bar. The vulnerability is not listed in CISA KEV at time of analysis, but the combination of a published PoC, trivial exploitation conditions, and a high-value target environment (developer workstations with API keys) makes this an elevated-priority patch for any team using Hermes Agent in the affected version range. No EPSS data was provided; absence is not a signal, but the developer-tool attack surface and published PoC suggest non-trivial exploitation probability. |
| Exploit ScenarioDerived | An attacker hosts a git repository containing a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Remote code execution in NousResearch Hermes Agent 0.18.2-0.21.0 allows an unauthenticated attacker to execute arbitrary OS commands in the victim's process context by supplying a malicious git repository containing a crafted .git/config that sets core.fsmonitor to an attacker-controlled binary or script. Exploitation is triggered the moment a user opens the malicious repository and sends any message, causing the agent's internal git status call to invoke the injected command and expose the full process environment - including configured LLM provider API keys. A public exploit writeup exists (manifold.security), and a patch was released as commit f6234d0.
RemediationAI
Update to a build containing commit f6234d00c5d59450adea1d7edd30ad3859375c79 or any release tagged after that commit. The patch is confirmed available from the vendor's GitHub repository (https://github.com/NousResearch/hermes-agent/commit/f6234d00c5d59450adea1d7edd30ad3859375c79); a discrete tagged release version was not independently confirmed at time of analysis - verify the installed commit hash against f6234d0. As a compensating control prior to patching, restrict Hermes Agent to repositories whose full git history and config you control and have reviewed; never open repositories from untrusted or third-party sources. Setting the global git config core.fsmonitor=false in ~/.gitconfig provides partial mitigation but does not cover all injection vectors addressed by the patch (diff drivers via .gitattributes, external hooks). Rotating any LLM provider API keys accessible in the agent's process environment is prudent if exposure to untrusted repositories occurred during the vulnerable window.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Hermes Agent (cpe:2.3:a:nousresearch:hermes-agent) is an AI coding assistant that invokes git internally to refresh repository state. Git's core.fsmonitor setting, introduced to allow filesystem monitoring hooks, accepts an arbitrary executable path that git runs during index refresh operations (git status). CWE-78 (OS Command Injection) applies because the agent passed git subcommands without sanitizing the inherited repository configuration or isolating the subprocess environment from attacker-controlled repo-local settings. The fix (PR #101483, commit f6234d0) introduced noninteractive_git_env() - which nullifies GIT_CONFIG_GLOBAL/SYSTEM, strips inherited GIT_CONFIG_* env vars, and explicitly overrides core.fsmonitor=false, core.hooksPath=/dev/null, and diff.external= - and harden_git_argv(), which inserts --no-ext-diff and --no-textconv for diff-rendering subcommands to defeat attacker-named .gitattributes diff drivers that environment overrides cannot enumerate.
Know when Hermes Agent gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network delivery via malicious repo, no privilege needed, but active user interaction (open repo + send message) required; full CIA impact on local process environment.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Hermes Agent 0.18.2 through 0.21.0, fixed in commit f6234d0, contains a remote code execution vulnerability that allows attackers to execute arbitrary OS commands by supplying a malicious repository with a crafted .git/config that sets core.fsmonitor to an attacker-controlled command. When a user opens the malicious repository and sends any message, the agent triggers a git status index refresh which executes the injected command in the user's process context, exposing the full environment including configured provider API keys.
Technical POC Analysis
CWE-78 (OS command injection).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
NousResearch Hermes Agent (versions 0.18.2-0.21.0) is vulnerable to unauthenticated remote code execution that directly exposes API keys and sensitive credentials from the agent's process environment. Publicly available exploit code exists and requires only minimal user interaction-opening a repository and sending a message-creating immediate risk for any development team or deployment automation using affected versions.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Hermes Agent
View allRemote command injection in NousResearch hermes-agent allows unauthenticated attackers to execute arbitrary OS commands
Path traversal in NousResearch hermes-agent (all versions through 2026.5.16) exposes arbitrary server-side files via the
Path traversal in NousResearch hermes-agent through version 2026.4.16 allows remote unauthenticated attackers to bypass
Remote sandbox escape in NousResearch hermes-agent versions up to 2026.4.16 allows unauthenticated attackers to manipula
Path traversal in NousResearch hermes-agent 0.8.0 exposes arbitrary server-side files to unauthenticated remote attacker
Remote code/prompt injection in NousResearch Hermes Agent through 0.12.0 stems from improper neutralization in the _comp
Remote injection in NousResearch Hermes Agent through version 2026.4.30 allows unauthenticated attackers to manipulate t
Code injection in NousResearch hermes-agent 2026.4.23 allows remote unauthenticated attackers to inject and execute arbi
Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers t
Remote injection vulnerability in NousResearch hermes-agent versions up to 2026.4.23 enables unauthenticated attackers t
Uncontrolled resource consumption in NousResearch hermes-agent (all versions through 2026.4.30) allows remote unauthenti
Missing authorization in NousResearch hermes-agent versions up to 2026.4.16 allows remote attackers to bypass authentica
EUVD-2026-70526
GHSA-cc88-9pxf-j2wv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB