{"id":"CVE-2024-5443","aliases":["CVE-2024-5443","GHSA-mvrm-fh8q-6wr2","PYSEC-2026-402"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution via Path Traversal in parisneo/lollms","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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 from 5.9.0, and has been addressed in version 9.5.1.","format":"markdown","source":"ghsa"},{"lang":"es","text":"CVE-2024-4320 describe una vulnerabilidad en el software parisneo/lollms, específicamente dentro de la función `ExtensionBuilder().build_extension()`. La vulnerabilidad surge del endpoint `/mount_extension`, donde un problema de path traversal permite a los atacantes navegar más allá de la estructura de directorios prevista. Esto se ve facilitado por los parámetros `data.category` y `data.folder` que aceptan cadenas vacías (`\"\"`), lo que, debido a una sanitización de entrada inadecuada, puede conducir a la construcción de un `package_path` que apunte al directorio raíz. En consecuencia, si un atacante puede crear un archivo `config.yaml` en una ruta controlable, esta ruta puede agregarse a la lista de `extensiones` y desencadenar la ejecución de `__init__.py` en el directorio actual, lo que lleva a la ejecución remota de código. La vulnerabilidad afecta a las versiones hasta la 5.9.0 y se solucionó en la versión 9.8.","source":"nvd"}],"published":"2024-06-22T16:12:32.499Z","modified":"2026-11-16T15:45:09.909Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-29"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"9.8","status":"affected"}],"vendor":"parisneo","product":"parisneo/lollms","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"5.9.0","status":"affected"}],"vendor":"parisneo","product":"lollms","cpe":"cpe:2.3:a:parisneo:lollms:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.9.0","status":"affected","fixed":"9.5.1"}],"ecosystem":"PyPI","package":"lollms","purl":"pkg:pypi/lollms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.9.0","status":"affected","fixed":"9.5.1"}],"ecosystem":"PyPI","package":"lollms","purl":"pkg:pypi/lollms","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/db52848a-4dbe-4110-a981-03739834bf45","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/parisneo/lollms/commit/2d0c4e76be93195836ecd0948027e791b8a2626f","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5443","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ParisNeo/lollms","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/lollms/PYSEC-2026-402.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/lollms","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-mvrm-fh8q-6wr2","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-06-24T14:49:54.244Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-5443","url":"https://www.cve.org/CVERecord?id=CVE-2024-5443","licence":"CVE Terms of Use","modified":"2024-08-01T21:11:12.805Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mvrm-fh8q-6wr2","url":"https://github.com/advisories/GHSA-mvrm-fh8q-6wr2","licence":"CC-BY-4.0","modified":"2026-11-16T15:45:09.909Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-5443","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5443","licence":"Public domain","modified":"2026-06-17T08:15:57.760Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-402","url":"https://osv.dev/vulnerability/PYSEC-2026-402","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:56.781Z"}],"updatedAt":"2026-11-25T22:58:42.145Z","epss":{"score":0.01154,"percentile":0.67904,"date":"2026-12-01T12:00:22.000Z"}}