Advisories
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
1,675 items
CVE-2024-1728 affects gradio-app/gradio because the UploadButton component does not properly validate user-supplied input. An attacker can manipulate the file path in a request to the /queue/join endpoint to read arbitrary files on the filesystem, such as private SSH keys. The flaw can also redirect file uploads to unintended server locations and could potentially lead to remote code execution.
BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. The `hf_chat_template` method passes the `chat_template` parameter from `tokenizer_config.json` through the Jinja template engine without proper sanitization. Attackers can craft malicious `tokenizer_config.json` files to execute arbitrary code on the server.
A flaw in the `safe_eval` function of the `exec_utils` class in the `llama_index` package allows prompt injection to lead to arbitrary code execution. Insufficient input validation lets an attacker bypass method restrictions and run unauthorized code. It bypasses the previously addressed CVE-2023-39662, and a proof of concept creates a file on the system.
CVE-2024-28224 affects Ollama before 0.1.29. A DNS rebinding vulnerability can inadvertently allow remote access to the full API, letting an unauthorized user chat with a large language model, delete a model, or cause a denial of service through resource exhaustion. The weakness is classified as CWE-346 (Origin Validation Error).
Fix: Fixed in 0.1.29 or later, per the Ollama releases page cited in the references.
NVD/CVE DatabaseCVE-2024-1729 is a timing attack vulnerability in the gradio-app/gradio repository, within the login function in routes.py. The login check uses a direct comparison, app.auth[username] == password, so an attacker can guess passwords by measuring response times, and successful exploitation could allow authentication bypass and unauthorized access. NVD has not yet provided an assessment.
Fix: The source links a commit (https://github.com/gradio-app/gradio/commit/e329f1fd38935213fe0e73962e8cbd5d3af6e87b) and a huntr.dev bounty page tagged as Patch, but it does not describe the fix or a fixed version in its…
CVE-2024-2206 is an SSRF flaw in gradio-app/gradio caused by insufficient validation of user-supplied URLs in the `/proxy` route. An attacker can add arbitrary URLs to `self.replica_urls` through the `X-Direct-Url` header on requests to `/` and `/config`, enabling unauthorized proxying and potential access to internal endpoints within the Hugging Face space.
CVE-2024-1455 affects the langchain-ai/langchain repository and allows a Billion Laughs Attack, a form of XML External Entity (XXE) exploitation. An attacker nests multiple layers of entities in an XML document, causing the XML parser to consume excessive CPU and memory and leading to a denial of service (DoS). The weakness is classified as CWE-776, Improper Restriction of Recursive Entity References in DTDs.
CVE-2024-1727 is a Cross-Site Request Forgery (CSRF) vulnerability in gradio-app/gradio that affects the file upload functionality implemented in gradio/routes.py. A crafted malicious HTML page can trigger unauthorized uploads of multiple large files to a victim's system when Gradio is running locally, which can deplete disk space and potentially cause a denial of service.
Fix: The source links a patch in the gradio-app/gradio commit 84802ee6a4806c25287344dce581f9548a99834a and a huntr.dev bounty page, but does not state a fixed version, configuration change or workaround in the text itself.
CVE-2024-28088 affects LangChain through 0.1.10. An actor who can control the final part of the path parameter in a load_chain call can use ../ directory traversal to bypass the intended restriction on loading configurations only from the hwchase17/langchain-hub GitHub repository. The source says the outcome can be disclosure of an API key for a large language model online service, or remote code execution.
Fix: A patch is available as of release 0.1.29 of langchain-core.
ZenML Server in the ZenML machine learning package for Python, before 0.46.7, allows remote privilege escalation. The /api/v1/users/{user_name_or_id}/activate REST API endpoint grants access given a valid username and a new password in the request body. Patched versions also include 0.44.4, 0.43.1, and 0.42.2.
Fix: Patched versions include 0.46.7 (versions before 0.46.7 are affected), along with 0.44.4, 0.43.1, and 0.42.2.
CVE-2024-27444 affects langchain_experimental (aka LangChain Experimental) in LangChain before 0.1.8. An attacker can bypass the CVE-2023-44467 fix and execute arbitrary code by using attributes such as __import__, __subclasses__, __builtins__ or __globals__ in Python code, which pal_chain/base.py does not prohibit. The NVD assessment has not yet been provided.
Fix: Commit de9a6cdf163ed00adaf2e559203ed0a9ca2f1de7 in the langchain-ai/langchain repository is referenced as the patch. The source does not state a fixed version beyond the affected range (before 0.1.8).
The langchain RecursiveUrlLoader in libs/community, in langchain_community/document_loaders/recursive_url_loader.py, can be made to fetch URLs outside the start site. An attacker who controls the content at the crawled URL can add links to other hosts, such as https://example.completely.different/my_file.html, and the crawler downloads them even when prevent_outside=True is set.
Fix: Resolved in https://github.com/langchain-ai/langchain/pull/15559
GitHub Advisory DatabaseCVE-2024-27133 is an insufficient sanitization flaw in MLflow that leads to cross-site scripting when a recipe runs against an untrusted dataset. The issue is reached through dataset table fields, which lack sanitization, and it results in a client-side RCE when the recipe runs in Jupyter Notebook. The weakness is classified as CWE-79 and was reported by JFrog.
Fix: The source links a patch at https://github.com/mlflow/mlflow/pull/10893, but does not state a fixed version or a configuration change.
CVE-2024-27132 is an insufficient sanitization flaw in MLflow that leads to XSS when an untrusted recipe runs. The source says the issue leads to a client-side RCE when running an untrusted recipe in Jupyter Notebook, and that it stems from a lack of sanitization over template variables.
Fix: The source references a patch in https://github.com/mlflow/mlflow/pull/10873, but does not state a fixed version or workaround.
NVD/CVE DatabaseCVE-2024-27319 affects the onnx package in versions before and including 1.15.0. The ONNX_ASSERT and ONNX_ASSERTM functions contain an off-by-one string copy, which causes an out-of-bounds read (CWE-125). The vulnerability was reported by HiddenLayer and published by NVD on 02/23/2024.
Fix: A patch is referenced in the GitHub commit 08a399ba75a805b7813ab8936b91d0e274b08287 in the onnx/onnx repository.
NVD/CVE DatabaseCVE-2024-27318 affects the onnx package in versions before and including 1.15.0. The external_data field of a tensor proto can point to a file outside the model's current directory or a user-provided directory, which is Directory Traversal (CWE-22). The flaw is a bypass of the patch added for CVE-2022-25882.
Fix: The source text does not state a fix, patched version, or workaround. The references list a commit (github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20) tagged as a Patch, but the source does not…
CVE-2024-0964 is a local file include in Gradio that can be triggered remotely through a vulnerable user-supplied JSON value in an API request. It is classified as CWE-22, Improper Limitation of a Pathname to a Restricted Directory. NVD published it on 02/05/2024 and last modified it on 11/21/2024, with no NVD assessment yet provided.
Fix: The source links a patch at https://github.com/gradio-app/gradio/commit/d76bcaaaf0734aaf49a680f94ea9d4d22a602e70, but it does not describe the fix or name a fixed version.
CVE-2024-23730 affects the OpenAPI and ChatGPT plugin loaders in LlamaHub (aka llama-hub) before 0.0.67. Because safe_load is not used for YAML, attackers can execute arbitrary code. NVD has not yet provided an assessment, and the weakness is listed as NVD-CWE-noinfo.
Fix: Fixed in 0.0.67. The source references the v0.0.67 CHANGELOG, a pull request commit (pull/841), and the v0.0.67 release tag as patch and release notes.
Versions of the Gradio Python package before 4.11.0 contained a flaw in the `/file` route that allowed file traversal. On a Gradio app with a public URL, such as one created with `share=True` or hosted on Hugging Face Spaces, an attacker who knew the paths of files could read arbitrary files on the machine.
Fix: Fixed in 4.11.0.
CVE-2023-7018 is a deserialization of untrusted data weakness (CWE-502) in the huggingface/transformers GitHub repository prior to 4.36. The entry was published to NVD on 12/20/2023 and last modified on 11/21/2024, with the source listed as huntr.dev. NVD has not yet provided an assessment.
Fix: The source links a commit (https://github.com/huggingface/transformers/commit/1d63b0ec361e7a38f1339385e8a5a855085532ce) and a huntr.dev bounty page tagged as Patch, but it does not state a fixed version or configuration…