Severity by source
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
3DescriptionGitHub Advisory
AnythingLLM is an application that turns pieces of content into context that any LLM can use as references during chatting. Prior to 1.13.0, the filesystem-search-files agent skill passes its LLM-controlled pattern parameter to ripgrep as a positional argument without a -- end-of-options separator. ripgrep parses any argument that starts with - as an option, so a pattern of --pre=/bin/sh turns ripgrep into a script executor: it runs /bin/sh <file> for every file it walks. An attacker who can chat with an agent on a deployment with the filesystem plugin enabled (the default in the official Docker image) can use this, together with the sibling filesystem-write-text-file skill, to run arbitrary commands inside the AnythingLLM server container. This vulnerability is fixed in 1.13.0.
AnalysisAI
Command injection in AnythingLLM prior to 1.13.0 allows attackers chatting with an agent to execute arbitrary commands inside the server container by abusing the filesystem-search-files skill. The LLM-controlled pattern parameter is passed to ripgrep without a '--' end-of-options separator, letting a crafted pattern like '--pre=/bin/sh' coerce ripgrep into executing files as shell scripts. The default official Docker image ships with the filesystem plugin enabled, making typical deployments exploitable; no public exploit identified at time of analysis.
Technical ContextAI
AnythingLLM (cpe:2.3:a:mintplex-labs:anything-llm) is a Node.js application that exposes LLM-callable 'agent skills' under server/utils/agents/aibitat/plugins/filesystem/, including search-files.js which shells out to the ripgrep binary. The flaw is a classic CWE-77 (Improper Neutralization of Special Elements used in a Command) argument injection: ripgrep treats any argv token beginning with '-' as an option, and its --pre=<command> flag designates an external preprocessor that ripgrep then invokes once per matched file. Because the agent pipeline forwarded the model-controlled pattern as a positional argument with no '--' separator, an attacker-controlled pattern was interpreted as a ripgrep option. The upstream fix (commit 94ed62d) inserts the '--' end-of-options sentinel before pattern and searchPath and additionally rejects patterns beginning with '-' as defense in depth.
RemediationAI
Upstream fix available (commit 94ed62d320df1a06c229e4bc3ee09c2cb5111b33) released in AnythingLLM 1.13.0; upgrade to 1.13.0 or later, pulling the latest official Docker image and recreating containers so the patched server/utils/agents/aibitat/plugins/filesystem/search-files.js is loaded. Until you can upgrade, disable the filesystem agent skill (specifically filesystem-search-files and filesystem-write-text-file) in the agent configuration, which removes the attack primitive at the cost of losing in-agent file search and write capabilities; alternatively restrict agent chat to fully trusted users only and place the server behind authenticated network controls, accepting that any trusted user who can be social-engineered still inherits RCE risk. See the GitHub Security Advisory at https://github.com/Mintplex-Labs/anything-llm/security/advisories/GHSA-6hrp-7mw6-8v59 and the patch at https://github.com/Mintplex-Labs/anything-llm/commit/94ed62d320df1a06c229e4bc3ee09c2cb5111b33.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
Vasion Print (formerly PrinterLogic) Virtual Appliance Host prior to version 25.2.169 and Application prior to version 2
An issue in Plone Docker Official Image 5.2.13 (5221) open-source software that could allow for remote code execution du
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve
Unauthenticated remote code execution in 9router (npm package) versions 0.4.30 through 0.4.36 allows network-adjacent at
Same weakness CWE-77 – Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-33068