CVE-2024-5211 Path Traversal to Arbitrary File Read/Delete/Overwrite, DoS Attack, and Admin Account Takeover in mintplex-labs/anything-llm
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
A path traversal vulnerability in mintplex-labs/anything-llm allowed a manager to bypass the normalizePath() function, intended to defend against path traversal attacks. This vulnerability enables the manager to read, delete, or overwrite the 'anythingllm.db' database file and other files stored in the 'storage' directory, such as internal communication keys and .env secrets. Exploitation of this vulnerability could lead to application compromise, denial of service (DoS) attacks, and unauthorized admin account takeover. The issue stems from improper validation of user-supplied input in the process of setting a custom logo for the app, which can be manipulated to achieve arbitrary file read, deletion, or overwrite, and to execute a DoS attack by deleting critical files required for the application's operation.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| mintplex-labs/anything-llm | < 1.0.0 | 1.0.0 | Fixed |
| mintplexlabs anythingllm | < 1.0.0 | 1.0.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mintplex-labs/anything-llm | < 1.0.0 | 1.0.0 |
| mintplexlabs anythingllm | < 1.0.0 | 1.0.0 |
References
- huntr.com exploit third-party-advisory
- github.com patch