CVE-2026-14625 Overview
CVE-2026-14625 affects NousResearch hermes-agent versions up to and including 0.15.2. The flaw resides in the shell.exec function within tui_gateway/server.py and stems from a protection mechanism failure [CWE-693]. Attackers can trigger the weakness remotely with low privileges and no user interaction. A public exploit has been released, increasing the likelihood of opportunistic abuse against exposed instances. The vendor was contacted before disclosure but did not respond, so no coordinated patch communication exists at publication time.
Critical Impact
Remote attackers can bypass safeguards in the shell.exec handler of hermes-agent, weakening controls that gate command execution within the agent's TUI gateway.
Affected Products
- NousResearch hermes-agent versions up to 0.15.2
- Component: tui_gateway/server.py
- Function: shell.exec
Discovery Timeline
- 2026-07-04 - CVE-2026-14625 published to NVD
- 2026-07-06 - Last updated in NVD database
Technical Details for CVE-2026-14625
Vulnerability Analysis
The vulnerability sits in the shell.exec function of tui_gateway/server.py, part of the hermes-agent project by NousResearch. According to the advisory, manipulation of this function results in a protection mechanism failure, classified as [CWE-693]. Protection mechanism failure describes a class of weaknesses where a security control exists in code but can be bypassed or rendered ineffective under attacker-controlled conditions.
The advisory states the attack can be launched over the network with low privileges required and no user interaction. A public proof of concept is available via the referenced GitHub Gist PoC Resource, which lowers the barrier for exploitation attempts against exposed agents. The vendor did not respond to disclosure attempts, so upstream remediation status is unknown.
Root Cause
The root cause is a failure of the safeguard that governs shell.exec inside the terminal user interface (TUI) gateway server. Instead of consistently enforcing the intended restriction on command execution, the control can be circumvented through crafted requests. This aligns with [CWE-693], where the protection is present in design but not effectively applied at runtime.
Attack Vector
Exploitation occurs over the network against a reachable hermes-agent instance. The attacker requires low-level authenticated access but does not need any victim interaction. Once the safeguard around shell.exec is bypassed, the agent's command handling path can be reached without the intended restrictions. Technical specifics are documented in the VulDB CVE-2026-14625 Entry and the associated VulDB Vulnerability #376141 record.
No verified code examples are available. Refer to the linked references for exploitation details.
Detection Methods for CVE-2026-14625
Indicators of Compromise
- Unexpected requests reaching the hermes-agent TUI gateway endpoint that invoke shell.exec with atypical arguments or parameter shapes.
- Process execution originating from the hermes-agent runtime that does not match normal agent workflows.
- Outbound network connections from the host running hermes-agent to unfamiliar destinations shortly after gateway requests.
Detection Strategies
- Log all invocations of the shell.exec handler in tui_gateway/server.py and alert on requests from unexpected principals or source addresses.
- Baseline normal command patterns issued through the agent and flag deviations, including new binaries, shell metacharacters, or environment manipulation.
- Correlate gateway request logs with child process telemetry to identify command execution that bypasses expected preconditions.
Monitoring Recommendations
- Monitor authentication events for the low-privilege accounts that can reach the TUI gateway to detect credential misuse.
- Track version strings and deployment manifests to inventory hosts running hermes-agent at or below 0.15.2.
- Watch for scanning behavior targeting network endpoints associated with hermes-agent following public PoC availability.
How to Mitigate CVE-2026-14625
Immediate Actions Required
- Restrict network exposure of the hermes-agent TUI gateway to trusted management networks only.
- Rotate and tighten credentials for any low-privilege accounts capable of reaching the gateway.
- Review recent logs of shell.exec invocations for signs of the public PoC being used against your deployment.
Patch Information
No vendor patch is referenced in the advisory. The vendor was contacted before disclosure but did not respond. Monitor the NousResearch hermes-agent repository and the VulDB CVE-2026-14625 Entry for updates. Until a fixed release is published, treat all instances at or below version 0.15.2 as affected.
Workarounds
- Place the TUI gateway behind an authenticating reverse proxy that enforces allow-lists on request paths and parameters.
- Run hermes-agent under a least-privileged system account and inside a container or sandbox that limits shell command surface.
- Disable or firewall the gateway interface entirely in environments where the TUI functionality is not required.
No verified configuration example is available. Apply network segmentation and least-privilege controls according to your platform's standard hardening guidance.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

