The vulnerability is a pre-authentication remote code execution flaw in the ChromaDB Python server. It stems from two main issues that, when combined, are critical. First, the /api/v2/tenants/{tenant}/databases/{db}/collections endpoint, handled by the create_collection function, processes user-supplied collection configurations before authenticating the request. Second, the server allows users to specify custom embedding functions and their configurations. An attacker can exploit this by crafting a request that specifies a SentenceTransformerEmbeddingFunction with a malicious model from HuggingFace and sets the trust_remote_code parameter to true. The load_create_collection_configuration_from_json function will process this configuration, and the SentenceTransformerEmbeddingFunction.build_from_config method will insecurely pass the trust_remote_code flag to the HuggingFace model loader. This causes the server to download and execute arbitrary code from the malicious model repository. Because the authentication check happens after the model is loaded and executed, an unauthenticated attacker can gain full control of the server process.