{"id":"CVE-2024-2359","summary":"Improper Neutralization of Special Elements used in an OS Command in parisneo/lollms-webui","details":"A vulnerability in the parisneo/lollms-webui version 9.3 allows attackers to bypass intended access restrictions and execute arbitrary code. The issue arises from the application's handling of the `/execute_code` endpoint, which is intended to be blocked from external access by default. However, attackers can exploit the `/update_setting` endpoint, which lacks proper access control, to modify the `host` configuration at runtime. By changing the `host` setting to an attacker-controlled value, the restriction on the `/execute_code` endpoint can be bypassed, leading to remote code execution. This vulnerability is due to improper neutralization of special elements used in an OS command (`Improper Neutralization of Special Elements used in an OS Command`).","modified":"2026-08-12T03:51:34.077059530Z","published":"2024-06-06T18:55:40.417Z","database_specific":{"cwe_ids":["CWE-78"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2359.json","cna_assigner":"@huntr_ai"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/62144831-8d4b-4cf2-9737-5e559f7bc67e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2359.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-2359"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/parisneo/lollms-webui","events":[{"introduced":"5f93989bdd697654f7d351643e322bc6a6225cb3"},{"last_affected":"5f93989bdd697654f7d351643e322bc6a6225cb3"}],"database_specific":{"source":"CPE_STRING","cpe":"cpe:2.3:a:lollms:lollms_web_ui:9.3:*:*:*:*:*:*:*","extracted_events":[{"introduced":"9.3"},{"last_affected":"9.3"}]}}],"versions":["9.3","v9.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-2359.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}