CVE-2026-48116: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in Mintplex-Labs anything-llm
CVE-2026-48116 is a command injection vulnerability in Mintplex-Labs anything-llm versions prior to 1.13.0. The issue arises because the filesystem-search-files agent skill passes an LLM-controlled pattern parameter to ripgrep without using an end-of-options separator, allowing specially crafted patterns to be interpreted as command options. This enables an attacker who can interact with the agent and has the filesystem plugin enabled to execute arbitrary commands inside the server container. The vulnerability is fixed in version 1.13.0.
AI Analysis
Technical Summary
AnythingLLM versions before 1.13.0 contain a command injection vulnerability (CWE-77) in the filesystem-search-files agent skill. The skill passes a pattern parameter controlled by the language model directly to ripgrep as a positional argument without a '--' end-of-options separator. Since ripgrep treats arguments starting with '-' as options, an attacker can supply a pattern like '--pre=/bin/sh' to cause ripgrep to execute '/bin/sh <file>' on each file it processes. Combined with the filesystem-write-text-file skill, this allows arbitrary command execution within the AnythingLLM server container. The vulnerability is resolved in version 1.13.0.
Potential Impact
Successful exploitation allows an attacker with access to chat with the agent on a deployment that has the filesystem plugin enabled (default in the official Docker image) to execute arbitrary commands inside the server container. This can lead to full compromise of the container environment, including confidentiality, integrity, and availability impacts as indicated by the CVSS score of 7.5 (high severity). There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in AnythingLLM version 1.13.0. Users should upgrade to version 1.13.0 or later to remediate this issue. Since the vendor advisory does not provide an official patch link or temporary workaround, upgrading is the recommended action. Deployments without the filesystem plugin enabled are not vulnerable. Patch status is not explicitly confirmed beyond the stated fix in 1.13.0; users should verify with the vendor for the latest remediation guidance.
CVE-2026-48116: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in Mintplex-Labs anything-llm
Description
CVE-2026-48116 is a command injection vulnerability in Mintplex-Labs anything-llm versions prior to 1.13.0. The issue arises because the filesystem-search-files agent skill passes an LLM-controlled pattern parameter to ripgrep without using an end-of-options separator, allowing specially crafted patterns to be interpreted as command options. This enables an attacker who can interact with the agent and has the filesystem plugin enabled to execute arbitrary commands inside the server container. The vulnerability is fixed in version 1.13.0.
CVSS v3.1
Score 7.5high
Affected software
pkg:github/mintplex-labs/anything-llmRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
AnythingLLM versions before 1.13.0 contain a command injection vulnerability (CWE-77) in the filesystem-search-files agent skill. The skill passes a pattern parameter controlled by the language model directly to ripgrep as a positional argument without a '--' end-of-options separator. Since ripgrep treats arguments starting with '-' as options, an attacker can supply a pattern like '--pre=/bin/sh' to cause ripgrep to execute '/bin/sh <file>' on each file it processes. Combined with the filesystem-write-text-file skill, this allows arbitrary command execution within the AnythingLLM server container. The vulnerability is resolved in version 1.13.0.
Potential Impact
Successful exploitation allows an attacker with access to chat with the agent on a deployment that has the filesystem plugin enabled (default in the official Docker image) to execute arbitrary commands inside the server container. This can lead to full compromise of the container environment, including confidentiality, integrity, and availability impacts as indicated by the CVSS score of 7.5 (high severity). There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in AnythingLLM version 1.13.0. Users should upgrade to version 1.13.0 or later to remediate this issue. Since the vendor advisory does not provide an official patch link or temporary workaround, upgrading is the recommended action. Deployments without the filesystem plugin enabled are not vulnerable. Patch status is not explicitly confirmed beyond the stated fix in 1.13.0; users should verify with the vendor for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-20T18:46:58.289Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a18b4aee29bf47b5032f471
Added to database: 05/28/2026, 21:33:34 UTC
Last enriched: 06/05/2026, 21:18:42 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 86
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.