{"id":"CVE-2024-1522","published":"2024-03-30T18:02:59Z","modified":"2024-08-01T18:40:21Z","title":"Cross-Site Request Forgery (CSRF) Leading to Remote Code Execution in parisneo/lollms-webui","vendor":"parisneo","product":"parisneo/lollms-webui","tier":"tail","description":{"text":"A Cross-Site Request Forgery (CSRF) vulnerability in the parisneo/lollms-webui project allows remote attackers to execute arbitrary code on a victim's system. The vulnerability stems from the `/execute_code` API endpoint, which does not properly validate requests, enabling an attacker to craft a malicious webpage that, when visited by a victim, submits a form to the victim's local lollms-webui instance to execute arbitrary OS commands. This issue allows attackers to take full control of the victim's system without requiring direct network access to the vulnerable application.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00445,"percentile":0.39531,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://huntr.com/bounties/687cef92-3432-4d6c-af92-868eccabbb71","tags":[]},{"url":"https://github.com/parisneo/lollms-webui/commit/0b51063119cfb5e391925d232a4af1de9dc32e2b","tags":[]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":7.91},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"parisneo","affectedVersions":[{"vendor":"parisneo","product":"parisneo/lollms-webui","versions":[">= unspecified, < 9.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-07-01T20:33:48.431201Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-17270","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-parisneo-lollms-webui-cve-2024-1522","children":[{"from":"CVE-2024-1522","to":"CVE-2024-1520","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/0b51063119cfb5e391925d232a4af1de9dc32e2b"],"basis":"shared function","functions":["open_code_folder","open_code_in_vs_code","open_file"]}]},{"from":"CVE-2024-1522","to":"CVE-2024-1569","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/0b51063119cfb5e391925d232a4af1de9dc32e2b","https://github.com/parisneo/lollms-webui/commit/354cf766835396b7fc0d5105ed3b77572a653149"],"basis":"shared function","functions":["open_code_folder","open_code_folder_in_vs_code","open_code_in_vs_code","open_file"]}]},{"from":"CVE-2024-1522","to":"CVE-2024-2356","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/0b51063119cfb5e391925d232a4af1de9dc32e2b","https://github.com/parisneo/lollms-webui/commit/41dbb1b3f2e78ea276e5269544e50514252c0c25"],"basis":"shared function","functions":["execute_code"]}]},{"from":"CVE-2024-1522","to":"CVE-2024-3126","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/0b51063119cfb5e391925d232a4af1de9dc32e2b","https://github.com/parisneo/lollms-webui/commit/41dbb1b3f2e78ea276e5269544e50514252c0c25"],"basis":"shared function","functions":["execute_code"]}]},{"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"]}]}]}}