{"answers":{"affected":"4 open source packages ship an affected version, including github.com/jumpserver/koko. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43651 exists.","fix":"Upgrade github.com/jumpserver/koko to a fixed version for your release line: 2.28.20 or 3.7.1.","what":"CVE-2023-43651 is a high-severity command injection vulnerability in jumpserver, published on 27 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-43651 and fix it if it is affected.\n\nWhat it is: CVE-2023-43651 is a high-severity command injection vulnerability in jumpserver, published on 27 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43651 exists.\n\nAffected packages and fixed versions:\n- github.com/jumpserver/koko (Go): affected from 2.0.0; fixed in 2.28.20\n- github.com/jumpserver/koko (Go): affected from 2.0.0; fixed in 2.28.20\n- github.com/jumpserver/koko (Go): affected from 3.0.0; fixed in 3.7.1\n- github.com/jumpserver/koko (Go): affected from 3.0.0; fixed in 3.7.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-43651/ (Markdown: https://insights.sbomify.com/CVE-2023-43651/index.md)","id":"CVE-2023-43651","markdown":"https://insights.sbomify.com/CVE-2023-43651/index.md","name":"CVE-2023-43651","record":{"aliases":["GHSA-4r5x-x283-wm96"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"JumpServer bastion host","requires_auth":"low_privilege","summary":"Authenticated users can execute arbitrary commands via MongoDB sessions in JumpServer, leading to remote code execution and potential root privilege escalation.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"jumpserver","vendor":"fit2cloud"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Remote code execution on the host system via MongoDB shell in jumpserver","id":"CVE-2023-43651","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":4,"n_references":2,"next":{"headline":"Non-MFA account takeover via using only SSH public key to login in jumpserver","id":"CVE-2023-43652"},"packages":[{"ecosystem":"Go","fixed":["2.28.20"],"introduced":["2.0.0"],"last_affected":[],"package":"github.com/jumpserver/koko","purl":null,"source":"GHSA-4r5x-x283-wm96"},{"ecosystem":"Go","fixed":["2.28.20"],"introduced":["2.0.0"],"last_affected":[],"package":"github.com/jumpserver/koko","purl":"pkg:golang/github.com/jumpserver/koko","source":"GHSA-4r5x-x283-wm96"},{"ecosystem":"Go","fixed":["3.7.1"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/jumpserver/koko","purl":null,"source":"GHSA-4r5x-x283-wm96"},{"ecosystem":"Go","fixed":["3.7.1"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/jumpserver/koko","purl":"pkg:golang/github.com/jumpserver/koko","source":"GHSA-4r5x-x283-wm96"}],"prev":{"headline":"Non-MFA account takeover via brute-force attack on weak password reset code in jumpserver","id":"CVE-2023-43650"},"products":["jumpserver"],"published":"2023-09-27","related":[{"cvss_score":10,"headline":"Arbitrary File Read in Ansible Playbooks in Jumpserver","id":"CVE-2024-40628","kev_date_added":null,"published":"2024-07-18"},{"cvss_score":10,"headline":"Arbitrary File Write in Ansible Playbooks leads to RCE in Jumpserver","id":"CVE-2024-40629","kev_date_added":null,"published":"2024-07-18"},{"cvss_score":10,"headline":"JumpServer's insecure Ansible playbook validation leads to RCE in Celery","id":"CVE-2024-29201","kev_date_added":null,"published":"2024-03-29"},{"cvss_score":10,"headline":"JumpServer vulnerable to Jinja2 template injection in Ansible leads to RCE in Celery","id":"CVE-2024-29202","kev_date_added":null,"published":"2024-03-29"},{"cvss_score":9.8,"headline":"Security feature bypass in n/a","id":"CVE-2023-48193","kev_date_added":null,"published":"2023-11-28"},{"cvss_score":9.6,"headline":"JumpServer Connection Token Leak Vulnerability","id":"CVE-2025-62712","kev_date_added":null,"published":"2025-10-30"},{"cvss_score":8.9,"headline":"Path traversal in Jumpserver","id":"CVE-2023-42819","kev_date_added":null,"published":"2023-09-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-25","vendors":["jumpserver"]},"summary":"Authenticated users can execute arbitrary commands via MongoDB sessions in JumpServer, leading to remote code execution and potential root privilege escalation.","url":"https://insights.sbomify.com/CVE-2023-43651/"}