CVE-2023-43651 Remote code execution on the host system via MongoDB shell in jumpserver
CriticalCVSS 9.9
EPSS 2.1%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| fit2cloud jumpserver | >= 2.0.0, < 2.28.20; >= 3.0.0, < 3.7.1 | 2.28.20, 3.7.1 | Fixed |
| jumpserver | = >= 2.0.0, < 2.28.20; = >= 3.0.0, < 3.7.1; >= 2.0.0, < 2.28.20; >= 3.0.0, < 3.7.1 | 2.28.20, 3.7.1 | Fixed |
| jumpserver github.com/jumpserver/koko(Go) | >= 2.0.0, < 2.28.20; >= 3.0.0, < 3.7.1 | 2.28.20, 3.7.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| jumpserver github.com/jumpserver/koko(Go) | >= 2.0.0, < 2.28.20 | 2.28.20 |
| jumpserver github.com/jumpserver/koko(Go) | >= 3.0.0, < 3.7.1 | 3.7.1 |
| jumpserver | = >= 2.0.0, < 2.28.20 | No fix listed |
| jumpserver | = >= 3.0.0, < 3.7.1 | No fix listed |
| jumpserver | >= 2.0.0, < 2.28.20 | 2.28.20 |
| jumpserver | >= 3.0.0, < 3.7.1 | 3.7.1 |
| fit2cloud jumpserver | >= 2.0.0, < 2.28.20 | 2.28.20 |
| fit2cloud jumpserver | >= 3.0.0, < 3.7.1 | 3.7.1 |
References
- https://github.com/jumpserver/jumpserver/security/advisories/GHSA-4r5x-x283-wm96 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com
- github.com product
- https://www.sonarsource.com/blog/diving-into-jumpserver-attackers-gateway-to-internal-networks-2-2