# CVE-2026-18996: cosmicstack-labs mercury-agent run_command permissions.ts PermissionManager.checkShellCommand privileges assignment

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-06T04:15:09.618Z
- Modified: 2026-10-23T21:10:00.157Z
- Weaknesses: CWE-266
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- cosmicstack-labs mercury-agent: 1.1.0; 1.1.1; 1.1.2; 1.1.3; 1.1.4; 1.1.5; 1.1.6; 1.1.7; 1.1.8; 1.1.9; 1.1.10; 1.1.11; and 1 more

## Every score

- VulDB: CVSS:4.0 5.3 Medium `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`
- VulDB: CVSS:3.1 6.3 Medium `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`
- VulDB: CVSS:3.0 6.3 Medium `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`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`

## References

- <https://github.com/cosmicstack-labs/mercury-agent/issues/72> (exploit, issue-tracking)
- <https://vuldb.com/vuln/386379> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/386379/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-18996> (third-party-advisory)
- <https://vuldb.com/submit/862625> (third-party-advisory)
- <https://vuldb.com/submit/862630> (third-party-advisory)
- <https://vuldb.com/submit/862636> (third-party-advisory)
- <https://vuldb.com/submit/862637> (third-party-advisory)
- <https://github.com/cosmicstack-labs/mercury-agent/> (product)

## Sources

- CVE List: [CVE-2026-18996](https://www.cve.org/CVERecord?id=CVE-2026-18996), CVE Terms of Use, modified 2026-08-06
- NVD: [CVE-2026-18996](https://nvd.nist.gov/vuln/detail/CVE-2026-18996), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-18996 · Whole record: https://cve.day/CVE-2026-18996.json · Rebuilt by cve.day 2026-11-25T22:59:31.205Z
