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
Versions of the langchain-experimental package from 0.0.15 before 0.0.21 contain CVE-2024-21513, an arbitrary code execution flaw. When retrieving values from the database, the package calls 'eval' on all values. An attacker who controls the input prompt can run arbitrary Python code on servers configured with VectorSQLDatabaseChain.
berriai/litellm version 1.34.34 has an improper access control flaw in its team management functionality. Insufficient access control checks in various team management endpoints let attackers create, update, view, delete, block, and unblock any team, and add or remove any team member, without authorization.
BerriAI/litellm version v1.35.8 contains a flaw that allows remote code execution. The `add_deployment` function decodes and decrypts base64 environment variables and assigns them to `os.environ`, and an attacker can send a malicious payload to the `/config/update` endpoint, which the server processes and executes when `get_secret` is triggered. Exploitation requires the server to use Google KMS and a database to store a model.
CVE-2024-37902 affects DeepJavaLibrary (DJL) versions 0.1.0 through 0.27.0, an engine-agnostic deep learning framework in Java. The flaw lets absolute path archived artifacts insert archived files directly into the system, overwriting system files. The CWE is CWE-22, Improper Limitation of a Pathname to a Restricted Directory.
Fix: This is fixed in DJL 0.28.0 and patched in DJL Large Model Inference containers version 0.27.0. Users are advised to upgrade.
CVE-2024-38459 affects langchain_experimental (LangChain Experimental) before 0.0.61. The package provides Python REPL access without an opt-in step, and the issue exists because of an incomplete fix for CVE-2024-27444. The weakness is classified as CWE-276, Incorrect Default Permissions.
Fix: Patch: https://github.com/langchain-ai/langchain/compare/langchain-experimental==0.0.60...langchain-experimental==0.0.61 (fixed in langchain_experimental 0.0.61, per the linked patch comparison).
CVE-2024-37014 affects Langflow through 0.6.19. The source states that remote code execution is possible if untrusted users can reach the "POST /api/v1/custom_component" endpoint and supply a Python script. The weakness is classified as CWE-94, Improper Control of Generation of Code ('Code Injection').
CVE-2024-5206 affects scikit-learn's TfidfVectorizer in versions up to and including 1.4.1.post1. The vectorizer stores every token from the training data in its `stop_words_` attribute, not only the tokens TF-IDF needs, so tokens meant to be discarded, such as passwords or keys, can be exposed. The impact depends on the data the vectorizer processes.
CVE-2024-5187 affects the `download_model_with_test_data` function in the onnx/onnx framework, version 1.16.0. The function extracts tar files without checking the paths inside them, so a malicious tar file can use path traversal to overwrite arbitrary files, such as `/home/kali/.ssh/authorized_keys` via an absolute path. An attacker could thereby overwrite any file on the system, potentially leading to remote code execution or deletion of system, personal, or application files.
BerriAI's litellm, in its latest version, contains an arbitrary file deletion flaw tracked as CVE-2024-4888. Improper input validation on the /audio/transcriptions endpoint lets an attacker send a crafted request containing a file path, and the server then removes that file through os.remove(file.filename) without authorization checks. Any user can therefore delete critical server files, such as SSH keys, SQLite databases, or configuration files.
CVE-2024-3099 affects mlflow/mlflow version 2.11.1. Attackers exploit URL encoding to create multiple models with the same name, because URL-encoded names are treated as distinct from their URL-decoded counterparts. This can cause a denial of service, since an authenticated user may open a different model each time, and it enables data model poisoning, where a user unknowingly loads an attacker-created model.
CVE-2024-3095 is a Server-Side Request Forgery (SSRF) flaw in the Web Research Retriever component of langchain-ai/langchain version 0.1.5. The component does not restrict requests to remote internet addresses, so it can reach local addresses, enabling port scans, access to local services and, in some cases, cloud instance metadata. Only GET requests are possible, but the flaw can still expose stolen credentials and state-changing calls to internal APIs.
CVE-2024-2928 is a Local File Inclusion flaw in mlflow/mlflow version 2.9.2, fixed in 2.11.3. The application fails to validate directory traversal sequences such as '../' in URI fragments, so an attacker can manipulate the fragment to read arbitrary local files, including '/etc/passwd'. It bypasses an earlier patch that only covered the URI query string.
CVE-2024-0520 affects mlflow/mlflow version 8.2.1. When loading a dataset from an HTTP source URL, the `mlflow.data.http_dataset_source.py` module builds the final file path from the Content-Disposition header or URL path without sanitization. Path traversal or absolute paths such as '../../tmp/poc.txt' let an attacker write arbitrary files, which could lead to command execution and access to data and model information.
Fix: The issue is fixed in version 2.9.0.
A remote code execution flaw exists in the lightning-ai/pytorch-lightning library, version 2.2.1, caused by improper handling of deserialized user input and mismanaged dunder attributes in the deepdiff library. An attacker can craft a serialized deepdiff.Delta that passes the deserializer whitelist and contains dunder attributes, which lets them reach other modules, classes and instances, enabling arbitrary attribute write and full RCE on self-hosted applications in their default configuration because the delta endpoint is enabled by default.
CVE-2024-4941 is a local file inclusion flaw in the JSON component of gradio-app/gradio version 4.25. The postprocess() function in gradio/components/json_component.py parses a user-controlled string as JSON, and if the object contains a path key, processing_utils.move_files_to_cache() copies the named file to a temporary directory. An attacker can then retrieve that file through the /file=.. endpoint, reading files on the remote system.
An SQL injection flaw exists in the berriai/litellm repository, in the `/global/spend/logs` endpoint. The affected code builds an SQL query by concatenating an unvalidated `api_key` parameter directly into it, so malicious data in that parameter can alter the query. The source says it affects the latest version of the repository and that exploitation could lead to unauthorized access, data manipulation, exposure of confidential information, and denial of service.
The `SitemapLoader` Document Loader in the `langchain-community` package, in versions below 0.2.5, has a denial of service flaw. The `parse_sitemap` method does not stop infinite recursion when a sitemap URL points back to the current sitemap, so it crashes the Python process by exceeding the maximum recursion depth. An attacker can occupy server socket/port resources, which impacts the availability of services that use this functionality.
qdrant/qdrant version 1.9.0-dev is vulnerable to arbitrary file read and write during snapshot recovery. An attacker can manipulate snapshot files to include symlinks, which enables reading any file on the filesystem and writing files by placing a symlink and payload file in the snapshot's directory structure. The source says this could lead to a full takeover of the system.
Fix: Fixed in v1.9.0.
NVD/CVE DatabaseCVE-2024-37032 affects Ollama before 0.1.34. The software does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path, so it mishandles inputs such as digests with fewer or more than 64 hex digits or an initial ../ substring. The weakness is classified as CWE-22, Path Traversal, and was published to NVD on 05/31/2024.
CVE-2024-3924 is a code injection flaw in the `autodocs.yml` workflow file of the huggingface/text-generation-inference repository. The workflow builds a package-install command from the untrusted `github.head_ref` value, so an attacker who forks the repository, names a branch with a malicious payload, and opens a pull request to the base repository can achieve arbitrary code execution within the GitHub Actions runner. The issue affects versions up to and including v2.0.0.
Fix: Fixed in 1.5.0
NVD/CVE DatabaseFix: Fixed in 2.11.3.
Fix: Fixed in 0.1.34. The source references the v0.1.33...v0.1.34 comparison and pull request 4175.
Fix: Fixed in version 2.0.0.