Browse / AI Framework and Platform Flaws / CVE-2024-3429
LoLLMS Path Traversal vulnerability
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Affected
- lollms (PyPI)
- Gets past
- Path restriction
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 28.3% chance of exploitation in 30 days
How it works, in short
Weak Windows path sanitisation lets crafted input escape the intended directory and read arbitrary files. (Our summary, written by a model. The source text is below.)
Details
A path traversal vulnerability exists in the parisneo/lollms application, specifically within the sanitize_path_from_endpoint and sanitize_path functions in lollms_core\lollms\security.py. This vulnerability allows for arbitrary file reading when the application is running on Windows. The issue arises due to insufficient sanitization of user-supplied input, enabling attackers to bypass the path traversal protection mechanisms by crafting malicious input. Successful exploitation could lead to unauthorized access to sensitive files, information disclosure, and potentially a denial of service (DoS) condition by including numerous large or resource-intensive files. This vulnerability affects the latest version prior to 9.5.0.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-3429
- https://github.com/parisneo/lollms/commit/f4424cfc3d6dfb3ad5ac17dd46801efe784933e9
- https://github.com/parisneo/lollms
- https://huntr.com/bounties/fd8f50c8-17f0-40be-a2c6-bb8d80f7c409
Source: GitHub Advisory Database, used under CC BY 4.0.