{"id":"CVE-2024-5443","published":"2024-06-22T16:12:32Z","modified":"2024-08-01T21:11:12Z","title":"Remote Code Execution via Path Traversal in parisneo/lollms","vendor":"parisneo","product":"parisneo/lollms","tier":"tail","description":{"text":"CVE-2024-4320 describes a vulnerability in the parisneo/lollms software, specifically within the `ExtensionBuilder().build_extension()` function. The vulnerability arises from the `/mount_extension` endpoint, where a path traversal issue allows attackers to navigate beyond the intended directory structure. This is facilitated by the `data.category` and `data.folder` parameters accepting empty strings (`\"\"`), which, due to inadequate input sanitization, can lead to the construction of a `package_path` that points to the root directory. Consequently, if an attacker can create a `config.yaml` file in a controllable path, this path can be appended to the `extensions` list and trigger the execution of `__init__.py` in the current directory, leading to remote code execution. The vulnerability affects versions up to 5.9.0, and has been addressed in version 9.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01164,"percentile":0.68034,"provenance":"source"},"cwes":[{"id":"CWE-29","name":"Path Traversal: '..filename'"}],"references":[{"url":"https://huntr.com/bounties/db52848a-4dbe-4110-a981-03739834bf45","tags":[]},{"url":"https://github.com/parisneo/lollms/commit/2d0c4e76be93195836ecd0948027e791b8a2626f","tags":[]}],"priority":{"score":20.5,"factors":[{"name":"EPSS percentile","points":13.61},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"parisneo","affectedVersions":[{"vendor":"parisneo","product":"parisneo/lollms","versions":[">= unspecified, < 9.8"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-06-24T14:49:54.244514Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lollms","vulnerableRanges":[">=5.9.0, <9.5.1"],"patched":["9.5.1"],"from":["GHSA-mvrm-fh8q-6wr2","PYSEC-2026-402"],"provenance":"source"}],"summary":{"text":"The parisneo/lollms product has a path traversal flaw in the ExtensionBuilder().build_extension() function, reached through its /mount_extension endpoint, where empty data.category and data.folder values let the constructed package_path resolve to the root directory. An attacker who can write a config.yaml file to a controllable path can get that path added to the extensions list, causing the __init__.py in the current directory to run and yielding remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:11:24Z"},"euvd":{"id":"EUVD-2024-2113","exploited":false,"provenance":"source"}}