Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/jumpserver/koko
  4. ›
  5. CVE-2023-43651

CVE-2023-43651: Improper Control of Generation of Code ('Code Injection')

October 24, 2023

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.

References

  • github.com/advisories/GHSA-4r5x-x283-wm96
  • github.com/jumpserver/jumpserver/security/advisories/GHSA-4r5x-x283-wm96
  • github.com/jumpserver/koko/commit/7d80db95d17c8f42bdf50260dfc21dc2bd0452c2
  • github.com/jumpserver/koko/commit/857f8b9e41f0930dc6190a35d8601fffa5e884e7
  • nvd.nist.gov/vuln/detail/CVE-2023-43651

Code Behaviors & Features

Detect and mitigate CVE-2023-43651 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.28.20, all versions starting from 3.0.0 before 3.7.1

Fixed versions

  • v2.28.20
  • v3.7.1

Solution

Upgrade to versions 2.28.20, 3.7.1 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

go/github.com/jumpserver/koko/CVE-2023-43651.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.