Skip to main content

Hermes Agent CVE-2026-71963

| EUVDEUVD-2026-70526 HIGH
OS Command Injection (CWE-78)
2026-09-03 VulnCheck GHSA-cc88-9pxf-j2wv
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Host malicious repo with crafted .git/config
  2. Delivery
    Social-engineer victim to open repo in Hermes Agent
  3. Exploit
    Victim sends any chat message
  4. Install
    Agent internally calls git status
  5. C2
    Git executes core.fsmonitor command
  6. Execute
    Injected script runs in victim process context
  7. Impact
    Exfiltrate 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 .git/config that sets core.fsmonitor to an attacker-controlled executable path - this is a repo-local configuration setting that git reads and applies without requiring any global or system-level configuration change. After opening the repository, the victim must send at least one message to the agent, which triggers the internal git status call. No authentication or special privileges on the target system are required. Exploitation is limited to Hermes Agent versions 0.18.2-0.21.0; victims must clone or open the malicious repository from an untrusted source (e.g., social engineering, supply chain substitution). The attacker-supplied executable must be reachable and executable on the victim's filesystem - in practice, the .git/config path can reference a script bundled within the same repository, making this self-contained.

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 .git/config with [core] fsmonitor = /tmp/steal_keys.sh, where steal_keys.sh exfiltrates $ANTHROPIC_API_KEY or other environment secrets to an attacker-controlled server. The victim is social-engineered into opening this repository in Hermes Agent (e.g., via a shared project link or a malicious dependency repo) and issues a single chat message. The agent calls git status internally, triggering git's fsmonitor hook, which executes the injected script with full access to the victim's environment. A public proof-of-concept writeup is available at https://www.manifold.security/blog/ai-coding-agents-git-hijack.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

hermes-agent 0.18.2 ≤0.21.0
hermes-agent patch: f6234d00c5d59450adea1d7edd30ad3859375c79

Affected Packages

euvd hermes_agent no fix

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

Vendor (VulnCheck) PRIMARY 8.6 HIGH
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
vuln.today AI 8.8 HIGH

Network delivery via malicious repo, no privilege needed, but active user interaction (open repo + send message) required; full CIA impact on local process environment.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 44% exploitable
Prevalence
Low
niche AI coding agent, limited enterprise deployment footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +43
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2026-9367 MEDIUM POC
5.5 May 24

Remote command injection in NousResearch hermes-agent allows unauthenticated attackers to execute arbitrary OS commands

CVE-2026-14628 MEDIUM POC
5.5 Jul 04

Path traversal in NousResearch hermes-agent (all versions through 2026.5.16) exposes arbitrary server-side files via the

CVE-2026-9351 MEDIUM POC
5.5 May 24

Path traversal in NousResearch hermes-agent through version 2026.4.16 allows remote unauthenticated attackers to bypass

CVE-2026-9368 MEDIUM POC
5.5 May 24

Remote sandbox escape in NousResearch hermes-agent versions up to 2026.4.16 allows unauthenticated attackers to manipula

CVE-2026-7396 MEDIUM POC
5.5 Apr 29

Path traversal in NousResearch hermes-agent 0.8.0 exposes arbitrary server-side files to unauthenticated remote attacker

CVE-2026-10221 MEDIUM POC
5.5 Jun 01

Remote code/prompt injection in NousResearch Hermes Agent through 0.12.0 stems from improper neutralization in the _comp

CVE-2026-10220 MEDIUM POC
5.5 Jun 01

Remote injection in NousResearch Hermes Agent through version 2026.4.30 allows unauthenticated attackers to manipulate t

CVE-2026-9366 MEDIUM POC
5.5 May 24

Code injection in NousResearch hermes-agent 2026.4.23 allows remote unauthenticated attackers to inject and execute arbi

CVE-2026-9354 MEDIUM POC
5.5 May 24

Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers t

CVE-2026-9353 MEDIUM POC
5.5 May 24

Remote injection vulnerability in NousResearch hermes-agent versions up to 2026.4.23 enables unauthenticated attackers t

CVE-2026-10224 MEDIUM POC
5.5 Jun 01

Uncontrolled resource consumption in NousResearch hermes-agent (all versions through 2026.4.30) allows remote unauthenti

CVE-2026-9350 MEDIUM POC
5.5 May 24

Missing authorization in NousResearch hermes-agent versions up to 2026.4.16 allows remote attackers to bypass authentica

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy