{"id":"CVE-2024-2358","summary":"Path Traversal leading to Remote Code Execution in parisneo/lollms-webui","details":"A path traversal vulnerability in the '/apply_settings' endpoint of parisneo/lollms-webui allows attackers to execute arbitrary code. The vulnerability arises due to insufficient sanitization of user-supplied input in the configuration settings, specifically within the 'extensions' parameter. Attackers can exploit this by crafting a payload that includes relative path traversal sequences ('../../../'), enabling them to navigate to arbitrary directories. This flaw subsequently allows the server to load and execute a malicious '__init__.py' file, leading to remote code execution. The issue affects the latest version of parisneo/lollms-webui.","modified":"2026-08-12T03:51:27.190231349Z","published":"2024-05-16T09:03:45.397Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2358.json","cna_assigner":"@huntr_ai","cwe_ids":["CWE-29"]},"references":[{"type":"WEB","url":"https://huntr.com/bounties/b2771df3-be50-45bd-93c4-0974ce38bc22"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2358.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-2358"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/parisneo/lollms-webui","events":[{"introduced":"0"},{"fixed":"eaa0b2035034d2cefcc536eb7d17a765dae4a6b4"}],"database_specific":{"cpe":"cpe:2.3:a:lollms:lollms_web_ui:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"9.5"}],"source":"CPE_RANGE"}}],"versions":["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-2358.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"}]}