CVE-2026-18996

cosmicstack-labs mercury-agent run_command permissions.ts PermissionManager.checkShellCommand privileges assignment

State
Published
Severity
5.3 Medium
Published
Aug 6, 2026
Updated
Aug 6, 2026
Reserved
Aug 5, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.05.3 MediumCVSS: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:PVulDB
3.16.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:RVulDB
3.06.3 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:RVulDB
2.06.5 MediumAV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:URVulDB

Weaknesses

  • CWE-266 Incorrect Privilege Assignment

Affected Products

ProductVersions
mercury-agentcosmicstack-labs
  • 1.1.0Affected
  • 1.1.1Affected
  • 1.1.2Affected
  • 1.1.3Affected
  • 1.1.4Affected
  • 1.1.5Affected
  • 1.1.6Affected
  • 1.1.7Affected
  • 1.1.8Affected
  • 1.1.9Affected
  • 1.1.10Affected
  • 1.1.11Affected
  • 1.1.12Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.