{"id":"CVE-2024-4326","summary":"Remote Code Execution via `/apply_settings` and `/execute_code` in parisneo/lollms-webui","details":"A vulnerability in parisneo/lollms-webui versions up to 9.3 allows remote attackers to execute arbitrary code. The vulnerability stems from insufficient protection of the `/apply_settings` and `/execute_code` endpoints. Attackers can bypass protections by setting the host to localhost, enabling code execution, and disabling code validation through the `/apply_settings` endpoint. Subsequently, arbitrary commands can be executed remotely via the `/execute_code` endpoint, exploiting the delay in settings enforcement. This issue was addressed in version 9.5.","modified":"2026-08-12T03:51:08.225453395Z","published":"2024-05-16T09:03:47.208Z","database_specific":{"cna_assigner":"@huntr_ai","cwe_ids":["CWE-15"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4326.json"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/2ab9f03d-0538-4317-be21-0748a079cbdd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4326.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4326"},{"type":"FIX","url":"https://github.com/parisneo/lollms-webui/commit/abb4c6d495a95a3ef5b114ffc57f85cd650b905e"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/parisneo/lollms-webui","events":[{"introduced":"0"},{"fixed":"eaa0b2035034d2cefcc536eb7d17a765dae4a6b4"},{"fixed":"abb4c6d495a95a3ef5b114ffc57f85cd650b905e"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:lollms:lollms_web_ui:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"9.5"}]}}],"versions":["v9.6","v9.5","v9.4","v9.3","v9.2","v9.1","v9.0","v8.5","v7.0","v6.7","v6.5.0","v6.5rc2","v6.5","v6.0","v5.0","v4.0","v3.5","v3.0","v0.0.9","v0.0.8","v0.0.7","v0.0.6","v0.0.5","v0.0.3","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-4326.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"}]}