PT-2024-23736 · Unknown · Anything-Llm

CVE-2024-3104

·

Published

2024-06-06

·

Updated

2024-10-15

CVSS v3.1

9.6

Critical

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions anything-llm versions prior to 1.0.0
Description A remote code execution issue exists due to improper handling of environment variables. Attackers can exploit this by injecting arbitrary environment variables via the "POST /api/system/update-env" endpoint, allowing for the execution of arbitrary code on the host running anything-llm. Successful exploitation could lead to code execution on the host, enabling attackers to read and modify data accessible to the user running the service, potentially leading to a denial of service.
Recommendations For anything-llm versions prior to 1.0.0, update to version 1.0.0 to resolve the issue. As a temporary workaround, consider restricting access to the "POST /api/system/update-env" endpoint until the update is applied.

Exploit

Fix

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-3104

Affected Products

Anything-Llm