# CVE-2026-40502: OpenHarness Remote Administrative Command Injection via Gateway Handler

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- 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): 1.67%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-16T00:08:34.463Z
- Modified: 2026-11-08T14:02:49.050Z
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

OpenHarness prior to commit dd1d235 contains a command injection vulnerability that allows remote gateway users with chat access to invoke sensitive administrative commands by exploiting insufficient distinction between local-only and remote-safe commands in the gateway handler. Attackers can execute administrative commands such as /permissions full_auto through remote chat sessions to change permission modes of a running OpenHarness instance without operator authorization.

(As written by CVE List.)

## Affected

- HKUDS OpenHarness: before dd1d235450dd987b20bff01b7bfb02fe8620a0af; before 2026-04-13

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/HKUDS/OpenHarness/pull/127> (exploit, issue-tracking, patch)
- <https://github.com/HKUDS/OpenHarness/commit/dd1d235450dd987b20bff01b7bfb02fe8620a0af> (patch)
- <https://www.vulncheck.com/advisories/openharness-remote-administrative-command-injection-via-gateway-handler> (third-party-advisory)

## Sources

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

---

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