{"id":"CVE-2024-4326","published":"2024-05-16T09:03:47Z","modified":"2024-08-01T20:40:46Z","title":"Remote Code Execution via `/apply_settings` and `/execute_code` in parisneo/lollms-webui","vendor":"parisneo","product":"parisneo/lollms-webui","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00968,"percentile":0.62651,"provenance":"source"},"cwes":[{"id":"CWE-15","name":"External Control of System or Configuration Setting"}],"references":[{"url":"https://huntr.com/bounties/2ab9f03d-0538-4317-be21-0748a079cbdd","tags":[]},{"url":"https://github.com/parisneo/lollms-webui/commit/abb4c6d495a95a3ef5b114ffc57f85cd650b905e","tags":[]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":12.53},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"parisneo","affectedVersions":[{"vendor":"parisneo","product":"parisneo/lollms-webui","versions":[">= unspecified, < 9.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-06-05T19:03:49.204166Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-43968","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-parisneo-lollms-webui-cve-2024-1522","parents":[{"from":"CVE-2024-1522","to":"CVE-2024-4326","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["endpoints/lollms_advanced.py","lollms_core"],"commits":["https://github.com/parisneo/lollms-webui/commit/0b51063119cfb5e391925d232a4af1de9dc32e2b","https://github.com/parisneo/lollms-webui/commit/abb4c6d495a95a3ef5b114ffc57f85cd650b905e"],"basis":"shared function","functions":["open_file"]}]},{"from":"CVE-2024-1520","to":"CVE-2024-4326","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["endpoints/lollms_advanced.py"],"commits":["https://github.com/parisneo/lollms-webui/commit/2497d1a4fe5a09f003bf7a9bc426139e9295a934","https://github.com/parisneo/lollms-webui/commit/abb4c6d495a95a3ef5b114ffc57f85cd650b905e"],"basis":"shared function","functions":["open_file"]}]},{"from":"CVE-2024-1569","to":"CVE-2024-4326","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["endpoints/lollms_advanced.py"],"commits":["https://github.com/parisneo/lollms-webui/commit/354cf766835396b7fc0d5105ed3b77572a653149","https://github.com/parisneo/lollms-webui/commit/abb4c6d495a95a3ef5b114ffc57f85cd650b905e"],"basis":"shared function","functions":["open_file"]}]}]}}