Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege API credentials
-
DeliverySend crafted run_command request
-
ExploitTrigger checkShellCommand logic flaw
-
ExecutionGain incorrect privilege assignment
-
ImpactExecute shell commands beyond authorized scope
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Privilege assignment review
|
| Exploitation Conditions | Exploitation requires a valid low-privilege account or API credential capable of reaching the run_command Handler over the network - the CVSS 4.0 vector PR:L confirms authentication is mandatory, meaning unauthenticated exploitation is not indicated. The affected code path (PermissionManager.checkShellCommand in src/capabilities/permissions.ts) must be reachable, which is a default part of the mercury-agent capability surface. No user interaction by a victim is required (UI:N). Exploitation is limited by the authentication barrier and by the moderate impact ceiling (VC:L/VI:L/VA:L), meaning fully unauthenticated or zero-click exploitation is not supported by the available data. Deployments that restrict run_command Handler access to known trusted identities or isolate the agent behind network controls would further limit exploitability. |
| Impact | The CVSS 4.0 base score of 5.3 (Medium) with vector AV:N/AC:L/AT:N/PR:L/UI:N reflects a network-exploitable flaw requiring low-privilege authentication, with limited confidentiality, integrity, and availability impact (VC:L/VI:L/VA:L) and no lateral scope change (SC:N/SI:N/SA:N). The exploit maturity modifier E:P confirms a publicly available proof-of-concept, which meaningfully elevates operational risk beyond the base score alone. The vulnerability is not listed in the CISA KEV catalog, suggesting no confirmed widespread active exploitation at time of analysis; however, the combination of public exploit code and vendor non-response creates an unmitigated window of exposure. The limited impact metrics suggest exploitation yields incremental privilege escalation rather than full system compromise, but in an agent framework context - where shell command execution is a primary capability - even a partial privilege bypass carries meaningful risk depending on the deployment environment. The absence of a patch and vendor silence are the primary risk amplifiers here. |
| Exploit ScenarioDerived | A low-privileged authenticated user with access to the mercury-agent API sends a crafted request to the run_command Handler, deliberately manipulating the parameters evaluated by PermissionManager.checkShellCommand. Due to the incorrect privilege assignment logic, the handler processes the command as if the caller holds a higher privilege tier, executing shell commands beyond the caller's authorized scope. A public proof-of-concept demonstrating this technique is available via GitHub issue #72 in the cosmicstack-labs/mercury-agent repository. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 06, 2026
Incorrect privilege assignment in cosmicstack-labs mercury-agent (all versions through 1.1.12) allows authenticated remote attackers to bypass shell command permission checks via the run_command Handler. The flaw resides in the PermissionManager.checkShellCommand function within src/capabilities/permissions.ts, where privilege levels are not correctly validated, potentially enabling a low-privileged user to execute shell commands exceeding their authorized scope. A public proof-of-concept exploit exists via GitHub issue #72, and the project maintainer has not responded to responsible disclosure, leaving no vendor-released patch available at time of analysis.
RemediationAI
No vendor-released patch is available at time of analysis - the project maintainer was notified via a responsible disclosure issue report but has not responded. Operators running mercury-agent versions up to 1.1.12 should consider the following compensating controls: restrict access to the run_command Handler endpoint at the network or API-gateway level so that only explicitly trusted, audited principals can invoke it, reducing the attack surface even if the privilege check itself is flawed; enforce strict network segmentation so the agent is not reachable from untrusted network segments; and monitor shell command execution logs for privilege anomalies or unexpected command patterns. Note that restricting the run_command Handler may degrade intended agent functionality. Organizations should track the upstream repository (https://github.com/cosmicstack-labs/mercury-agent/) and the VulDB entry (https://vuldb.com/vuln/386379) for patch availability and respond immediately by upgrading once a fixed release is published.
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
mercury-agent is a TypeScript-based agent framework developed by cosmicstack-labs, designed to handle capability-based command execution. The vulnerable component is the PermissionManager class in src/capabilities/permissions.ts, specifically the checkShellCommand method invoked by the run_command Handler. CWE-266 (Incorrect Privilege Assignment) identifies the root cause: the permission-checking logic fails to properly assign or enforce privilege tiers when evaluating shell command requests, meaning a caller with low-level credentials can trigger command execution paths intended only for higher-privilege roles. The CPE cpe:2.3:a:cosmicstack-labs:mercury-agent:*:*:*:*:*:*:*:* covers all releases up to and including 1.1.12 as the affected scope.
Know when Mercury 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:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-reachable with low-privilege authentication required (PR:L); limited C/I/A impact consistent with partial privilege bypass, no scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability has been found in cosmicstack-labs mercury-agent up to 1.1.12. This vulnerability affects the function PermissionManager.checkShellCommand of the file src/capabilities/permissions.ts of the component run_command Handler. Such manipulation leads to incorrect privilege assignment. The attack may be performed from remote. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Mercury Agent
View allImproper authorization in cosmicstack-labs mercury-agent's PermissionManager.checkShellCommand function (versions 1.1.0
Improper authorization in cosmicstack-labs mercury-agent's delegate_task tool allows a remotely authenticated low-privil
Incorrect authorization in cosmicstack-labs mercury-agent through version 1.1.12 allows remote authenticated attackers t
Server-side request forgery in cosmicstack-labs Mercury Agent (versions 1.1.0 through 1.1.13) lets an attacker who can i
Mercury Agent versions through 1.1.13 gate shell execution by validating commands before canonicalizing them, so a calle
A local information-disclosure weakness in cosmicstack-labs mercury-agent through version 1.2.0 lets a low-privileged lo
EUVD-2026-53709
GHSA-ccg4-hv3q-9622
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB