A critical remote code execution vulnerability (CVE-2024-5443) exists in lollms versions 5.9.0 up to but not including 9.5.1. The flaw is due to a path traversal bypass in the /mount_extension endpoint, where insufficient input sanitization of parameters allows attackers to escape the intended directory structure. This can lead to execution of arbitrary code via a crafted config.yaml file and the triggering of __init__.py in an attacker-controlled path. The issue is fixed in version 9.5.1.