# CVE-2023-43651: Remote code execution on the host system via MongoDB shell in jumpserver

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- 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): 2.11%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-09-27T20:24:08.733Z
- Modified: 2026-09-10T03:49:24.676Z
- Also known as: GHSA-4r5x-x283-wm96
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

JumpServer is an open source bastion host. An authenticated user can exploit a vulnerability in MongoDB sessions to execute arbitrary commands, leading to remote code execution. This vulnerability may further be leveraged to gain root privileges on the system. Through the WEB CLI interface provided by the koko component, a user logs into the authorized mongoDB database and exploits the MongoDB session to execute arbitrary commands. This vulnerability has been addressed in versions 2.28.20 and 3.7.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- jumpserver jumpserver: >= 2.0.0, < 2.28.20; >= 3.0.0, < 3.7.1; from 2.0.0 before 2.28.20; from 3.0.0 before 3.7.1
- github.com/jumpserver/koko (Go): from 2.0.0 before 2.28.20; from 3.0.0 before 3.7.1
- fit2cloud jumpserver: from 2.0.0 before 2.28.20; from 3.0.0 before 3.7.1

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/jumpserver/jumpserver/security/advisories/GHSA-4r5x-x283-wm96> (exploit, vendor-advisory, web)
- <https://www.sonarsource.com/blog/diving-into-jumpserver-attackers-gateway-to-internal-networks-2-2>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43651> (advisory)
- <https://github.com/jumpserver/koko/commit/7d80db95d17c8f42bdf50260dfc21dc2bd0452c2> (web)
- <https://github.com/jumpserver/koko/commit/857f8b9e41f0930dc6190a35d8601fffa5e884e7> (web)
- <https://github.com/jumpserver/koko> (package)

## Sources

- CVE List: [CVE-2023-43651](https://www.cve.org/CVERecord?id=CVE-2023-43651), CVE Terms of Use, modified 2025-03-25
- GitHub Advisory Database: [GHSA-4r5x-x283-wm96](https://github.com/advisories/GHSA-4r5x-x283-wm96), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-43651](https://nvd.nist.gov/vuln/detail/CVE-2023-43651), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-43651 · Whole record: https://cve.day/CVE-2023-43651.json · Rebuilt by cve.day 2026-11-25T22:58:28.237Z
