{"id":"CVE-2024-3322","state":"PUBLISHED","title":"Path Traversal in parisneo/lollms-webui","description":"A path traversal vulnerability exists in the 'cyber_security/codeguard' native personality of the parisneo/lollms-webui, affecting versions up to 9.5. The vulnerability arises from the improper limitation of a pathname to a restricted directory in the 'process_folder' function within 'lollms-webui/zoos/personalities_zoo/cyber_security/codeguard/scripts/processor.py'. Specifically, the function fails to properly sanitize user-supplied input for the 'code_folder_path', allowing an attacker to specify arbitrary paths using '../' or absolute paths. This flaw leads to arbitrary file read and overwrite capabilities in specified directories without limitations, posing a significant risk of sensitive information disclosure and unauthorized file manipulation.","publishedAt":"2024-06-06T18:40:18.402Z","updatedAt":"2024-08-01T20:05:08.477Z","severity":{"score":8.4,"label":"High","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["parisneo parisneo/lollms-webui"],"affected":[{"vendor":"parisneo","product":"parisneo/lollms-webui","versions":[{"version":"unspecified","status":"affected","lessThan":"9.5","versionType":"custom"}]}],"references":["https://huntr.com/bounties/e0822362-033a-4a71-b1dc-d803f03bd427","https://github.com/parisneo/lollms-webui/commit/1e17df01e01d4d33599db2afaafe91d90b6f0189"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/3xxx/CVE-2024-3322.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-3322","state":"PUBLISHED","datePublished":"2024-06-06T18:40:18.402Z","dateUpdated":"2024-08-01T20:05:08.477Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2024-04-04T16:19:19.904Z"},"containers":{"cna":{"title":"Path Traversal in parisneo/lollms-webui","descriptions":[{"lang":"en","value":"A path traversal vulnerability exists in the 'cyber_security/codeguard' native personality of the parisneo/lollms-webui, affecting versions up to 9.5. The vulnerability arises from the improper limitation of a pathname to a restricted directory in the 'process_folder' function within 'lollms-webui/zoos/personalities_zoo/cyber_security/codeguard/scripts/processor.py'. Specifically, the function fails to properly sanitize user-supplied input for the 'code_folder_path', allowing an attacker to specify arbitrary paths using '../' or absolute paths. This flaw leads to arbitrary file read and overwrite capabilities in specified directories without limitations, posing a significant risk of sensitive information disclosure and unauthorized file manipulation."}],"affected":[{"vendor":"parisneo","product":"parisneo/lollms-webui","versions":[{"version":"unspecified","status":"affected","lessThan":"9.5","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/e0822362-033a-4a71-b1dc-d803f03bd427"},{"url":"https://github.com/parisneo/lollms-webui/commit/1e17df01e01d4d33599db2afaafe91d90b6f0189"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","type":"CWE","lang":"en","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2024-06-06T18:40:18.402Z"},"source":{"advisory":"e0822362-033a-4a71-b1dc-d803f03bd427","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"parisneo","product":"lollms-webui","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"9.5","versionType":"custom"}],"cpes":["cpe:2.3:a:parisneo:lollms-webui:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-19T12:30:37.492381Z","id":"CVE-2024-3322","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-01T17:38:49.416Z"}},{"title":"CVE Program Container","references":[{"url":"https://huntr.com/bounties/e0822362-033a-4a71-b1dc-d803f03bd427","tags":["x_transferred"]},{"url":"https://github.com/parisneo/lollms-webui/commit/1e17df01e01d4d33599db2afaafe91d90b6f0189","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T20:05:08.477Z"}}]}}}