PT-2024-33236 · Parisneo · Lollms

Published

2024-06-06

·

Updated

2024-10-17

·

CVE-2024-4881

CVSS v4.0

7.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Name of the Vulnerable Software and Affected Versions parisneo/lollms versions prior to 9.5.0
Description A path traversal vulnerability exists due to improper validation of file paths between Windows and Linux environments, allowing attackers to traverse beyond the intended directory and read any file on the Windows system. The application fails to adequately sanitize file paths containing backslashes (``), which can be exploited to access the root directory and read, or even delete, sensitive files. This issue was discovered in the context of the "/user infos" endpoint, where a crafted request using backslashes to reference a file could result in unauthorized file access. The impact of this vulnerability includes the potential for attackers to access sensitive information such as environment variables, database files, and configuration files, which could lead to further compromise of the system.
Recommendations For versions prior to 9.5.0, update to version 9.5.0 or later to resolve the issue. As a temporary workaround, consider disabling the "/user infos" endpoint until a patch is available. Restrict access to the application to minimize the risk of exploitation. Avoid using backslashes (``) in file paths to prevent unauthorized file access.

Exploit

Fix

Path traversal

Weakness Enumeration

Related Identifiers

CVE-2024-4881
GHSA-P8H7-C8GW-6X8C
PYSEC-2024-108

Affected Products

Lollms