{"id":"CVE-2024-5443","kind":"vulnerability","aliases":["CVE-2024-5443","GHSA-mvrm-fh8q-6wr2"],"related":[],"title":"Remote Code Execution via path traversal bypass in lollms","description":"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.","summary":"The lollms AI web app's extension-mounting endpoint accepts empty category and folder values, which lets a path traversal reach the root directory. An attacker who can place a config.yaml file in a reachable path gets their __init__.py executed, which means remote code execution on the server.","severity":"critical","cvss":9.8,"epss":0.01164,"exploited":false,"exploited_at":null,"products":[{"name":"lollms","fixed":["9.5.1"],"affected":">= 5.9.0, < 9.5.1","ecosystem":"pypi"}],"ecosystems":["pypi"],"tags":["ai-tooling","cwe-29","lollms","python","self-hosted"],"not_affected_if":["version-outside-range"],"how_to_check":"- Check the installed lollms version with `pip show lollms` and treat anything from `5.9.0` up to but not including `9.5.1` as exposed.\n- Look for the `/mount_extension` endpoint in the deployed lollms instance.","fix":"- Upgrade lollms to `9.5.1` or later.","status":"open","published_at":"2024-06-22T17:15:34+00:00","first_seen_at":"2026-11-16T15:42:57+00:00","triaged_at":"2026-11-16T15:44:07+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"ai-tooling","confidence":0.7,"triage":{"at":"2026-11-16T15:44:07Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade lollms to `9.5.1` or later.","reach":"unknown","title":"lollms: path traversal lets remote requests run code on servers","impact":"high","summary":"The lollms AI web app's extension-mounting endpoint accepts empty category and folder values, which lets a path traversal reach the root directory. An attacker who can place a config.yaml file in a reachable path gets their __init__.py executed, which means remote code execution on the server.","audience":"businesses","category":"ai-tooling","nicknames":[],"who_cares":["lollms","python","self-hosted","ai-tooling"],"confidence":0.7,"fix_status":"available","needs_auth":"unknown","worst_case":"Attacker runs code on the server via extension endpoint.","analyst_note":"The description names CVE-2024-4320 while this record is CVE-2024-5443; confirm which CVE the write-up covers, and find the exact auth requirement and reachability of /mount_extension in the GHSA advisory.","how_to_check":"- Check the installed lollms version with `pip show lollms` and treat anything from `5.9.0` up to but not including `9.5.1` as exposed.\n- Look for the `/mount_extension` endpoint in the deployed lollms instance.\n- unknown","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["version-outside-range"],"who_is_affected":"Teams running a self-hosted lollms server in the affected version range are exposed, especially if the /mount_extension endpoint is reachable and the attacker can write a config.yaml file somewhere the server reads. Installations outside the affected range, or with the endpoint not reachable, are not affected by this description.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.001243,"input_tokens":4795,"output_tokens":1527,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2024':11A,19A,83C '-29':26B '-4320':84C '-5443':12A,20A '/mount_extension':104C '5.9.0':196C '6wr2':17A '9.5.1':203C 'accept':42B,129C 'address':200C 'affect':193C 'ai':23B,34B 'ai-tool':22B 'allow':111C 'app':36B 'append':170C 'aris':101C 'attack':58B,112C,156C 'beyond':115C 'build':96C 'bypass':7A 'categori':44B 'code':2A,77B,189C 'config.yaml':63B,160C 'consequ':153C 'construct':142C 'control':164C 'creat':158C 'current':184C 'cve':10A,18A,82C 'cwe':25B 'data.category':125C 'data.folder':127C 'describ':85C 'directori':56B,118C,152C,185C 'due':133C 'empti':43B,130C 'endpoint':41B,105C 'execut':3A,73B,78B,178C,190C 'extens':39B,97C,173C 'extension-mount':38B 'extensionbuild':95C 'facilit':122C 'fh8q':16A 'file':64B,161C 'folder':46B 'function':98C 'get':69B 'ghsa':14A 'ghsa-mvrm-fh8q-6wr2':13A 'host':31B 'inadequ':135C 'init':71B,180C 'input':136C 'intend':117C 'issu':110C 'lead':139C,186C 'let':49B 'list':174C 'lollm':9A,27B,33B 'lollms':21A 'mean':75B 'mount':40B 'mvrm':15A 'navig':114C 'packag':145C 'paramet':128C 'parisneo/lollms':90C 'path':5A,51B,68B,108C,146C,165C,167C 'place':61B 'point':148C 'py':72B,181C 'python':28B 'reach':53B 'reachabl':67B 'remot':1A,76B,188C 'root':55B,151C 'sanit':137C 'self':30B 'self-host':29B 'server':81B 'softwar':91C 'specif':92C 'string':131C 'structur':119C 'tool':24B 'travers':6A,52B,109C 'trigger':176C 'valu':47B 'version':194C,202C 'via':4A 'vulner':87C,100C,192C 'web':35B 'within':93C","nicknames":[],"mitigations":[],"who_affected":"Teams running a self-hosted lollms server in the affected version range are exposed, especially if the /mount_extension endpoint is reachable and the attacker can write a config.yaml file somewhere the server reads. Installations outside the affected range, or with the endpoint not reachable, are not affected by this description.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["lollms"],"ptokens":["lollms"],"labels":["aitooling","critical","cwe29","lollms","pypi","python","selfhosted"],"campaign_type":null,"search_a":"'-2024':11A,19A '-5443':12A,20A '6wr2':17A 'bypass':7A 'code':2A 'cve':10A,18A 'execut':3A 'fh8q':16A 'ghsa':14A 'ghsa-mvrm-fh8q-6wr2':13A 'lollm':9A 'lollms':21A 'mvrm':15A 'path':5A 'remot':1A 'travers':6A 'via':4A","search_b":"'-29':26B 'accept':42B 'ai':23B,34B 'ai-tool':22B 'app':36B 'attack':58B 'categori':44B 'code':77B 'config.yaml':63B 'cwe':25B 'directori':56B 'empti':43B 'endpoint':41B 'execut':73B,78B 'extens':39B 'extension-mount':38B 'file':64B 'folder':46B 'get':69B 'host':31B 'init':71B 'let':49B 'lollm':27B,33B 'mean':75B 'mount':40B 'path':51B,68B 'place':61B 'py':72B 'python':28B 'reach':53B 'reachabl':67B 'remot':76B 'root':55B 'self':30B 'self-host':29B 'server':81B 'tool':24B 'travers':52B 'valu':47B 'web':35B","search_c":"'-2024':83C '-4320':84C '/mount_extension':104C '5.9.0':196C '9.5.1':203C 'accept':129C 'address':200C 'affect':193C 'allow':111C 'append':170C 'aris':101C 'attack':112C,156C 'beyond':115C 'build':96C 'code':189C 'config.yaml':160C 'consequ':153C 'construct':142C 'control':164C 'creat':158C 'current':184C 'cve':82C 'data.category':125C 'data.folder':127C 'describ':85C 'directori':118C,152C,185C 'due':133C 'empti':130C 'endpoint':105C 'execut':178C,190C 'extens':97C,173C 'extensionbuild':95C 'facilit':122C 'file':161C 'function':98C 'inadequ':135C 'init':180C 'input':136C 'intend':117C 'issu':110C 'lead':139C,186C 'list':174C 'navig':114C 'packag':145C 'paramet':128C 'parisneo/lollms':90C 'path':108C,146C,165C,167C 'point':148C 'py':181C 'remot':188C 'root':151C 'sanit':137C 'softwar':91C 'specif':92C 'string':131C 'structur':119C 'travers':109C 'trigger':176C 'version':194C,202C 'vulner':87C,100C,192C 'within':93C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2024-06-22T17:15:34+00:00","kev":null,"cvss_vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-mvrm-fh8q-6wr2","url":"https://github.com/advisories/GHSA-mvrm-fh8q-6wr2","severity":"critical","published_at":"2024-06-22T18:30:41+00:00","modified_at":"2026-11-16T15:38:33+00:00","first_seen_at":"2026-11-16T15:42:57+00:00","fetched_at":"2026-11-16T15:46:58+00:00","note":null},{"source":"nvd","external_id":"CVE-2024-5443","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5443","severity":null,"published_at":"2024-06-22T17:15:34+00:00","modified_at":"2026-06-17T08:15:57+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[{"id":170728,"url":"https://github.com/parisneo/lollms/commit/2d0c4e76be93195836ecd0948027e791b8a2626f","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.01164,"url":"https://api.first.org/data/v1/epss?cve=CVE-2024-5443"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}