Skip to content
CriticalVulnerability

CVE-2024-5443: parisneo/lollms path traversal in /mount_extension leads to code execution

Identifier
CVE-2024-5443
Published
Record updated
View JSON
Affected
  • lollms >= 5.9.0, < 9.5.1
Fixed in
9.5.1
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2024-4320 affects parisneo/lollms through version 5.9.0. In `ExtensionBuilder().build_extension()`, the `/mount_extension` endpoint allows path traversal because empty `data.category` and `data.folder` values can produce a `package_path` pointing to the root directory. An attacker who can create a `config.yaml` file in a controllable path can get its path added to the `extensions` list, which executes `__init__.py` and leads to remote code execution.

Mitigation

Fixed in version 9.8.