Description
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.
Published: 2026-08-06
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is located in the PermissionManager.checkShellCommand function of mercury‑agent’s run_command handler. It allows an attacker to cause incorrect privilege assignments during shell command execution. As a result, a remote attacker can elevate privileges beyond the intended scope, potentially compromising system integrity. This weakness is classified under CWE‑266 for improper authority delegation.

Affected Systems

CosmicStack‑Labs Mercury Agent versions up to and including 1.1.12 are affected. The flaw resides in the src/capabilities/permissions.ts component of the run_command capability. Users still running these versions are at risk.

Risk and Exploitability

The CVSS score of 5.3 indicates a medium severity vulnerability, but because the exploit can be performed remotely and has already been disclosed to the public, the risk remains significant. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog, yet the remote nature and public availability of the exploit suggest it may be actively leveraged. The attack likely involves invoking the run_command handler with crafted input to trigger the misassignment of privileges.

Generated by OpenCVE AI on August 6, 2026 at 05:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Mercury Agent to version 1.1.13 or later to apply the vendor’s fix for PermissionManager.checkShellCommand.
  • If an update is not immediately possible, disable the run_command capability in the agent’s configuration or restrict it to a non‑privileged user context to prevent privilege escalation.
  • Audit and review the agent’s permission configuration to ensure that only trusted callers can request shell command execution, and remove any default elevated privileges assigned to external requests.

Generated by OpenCVE AI on August 6, 2026 at 05:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 06 Aug 2026 04:30:00 +0000

Type Values Removed Values Added
Description 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.
Title cosmicstack-labs mercury-agent run_command permissions.ts PermissionManager.checkShellCommand privileges assignment
First Time appeared Cosmicstack-labs
Cosmicstack-labs mercury-agent
Weaknesses CWE-266
CPEs cpe:2.3:a:cosmicstack-labs:mercury-agent:*:*:*:*:*:*:*:*
Vendors & Products Cosmicstack-labs
Cosmicstack-labs mercury-agent
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': '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'}


Subscriptions

Cosmicstack-labs Mercury-agent
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-08-06T04:15:09.618Z

Reserved: 2026-08-05T19:41:31.033Z

Link: CVE-2026-18996

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-06T05:30:16Z

Weaknesses
  • CWE-266

    Incorrect Privilege Assignment