CVE-2026-48116·Docker vulnerability
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.
- Severity
- high
- Software
- Docker
- Fixed in
- 1.13.0
- Published
- 2026-05-28
Affected versions
Until: 1.13.0
Fixed in: 1.13.0
How to fix this CVE
Update Docker to the latest version to address this vulnerability. The issue involves improper argument handling in the filesystem-search-files agent skill that could allow command injection. Upgrade to Docker version 1.13.0 or later, which includes proper sanitization of parameters passed to ripgrep and prevents option injection attacks.
sudo dnf upgrade docker-ceDefensia detects this vulnerability
How to check if you are affected
- Step 1: Run 'docker --version' to check the current Docker version installed on your system
- Step 2: If using AnythingLLM in Docker, verify the image tag with 'docker images | grep anythingllm' and check if it's below version 1.13.0
- Step 3: Review container logs for unusual ripgrep invocations using 'docker logs <container_id> | grep -i ripgrep' or 'docker logs <container_id> | grep -i "--pre='
- Step 4: Confirm the patch by pulling the latest image and comparing: 'docker pull mintplexlabs/anythingllm:latest' and verifying the build date is after the fix commit date
FAQ
What is CVE-2026-48116?
This vulnerability affects AnythingLLM's filesystem-search-files agent skill, which fails to properly escape user-supplied pattern parameters before passing them to ripgrep. An attacker can inject ripgrep options (like --pre) to execute arbitrary commands within the container.
Is CVE-2026-48116 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public exploits have been released. However, the attack vector is straightforward for authenticated users.
What versions of Docker are affected by CVE-2026-48116?
All versions of AnythingLLM prior to 1.13.0 are affected. Since the vulnerability is in the AnythingLLM application running inside Docker containers (not Docker itself), ensure your AnythingLLM container image is updated to version 1.13.0 or later.
How do I check if my server is vulnerable to CVE-2026-48116?
Run 'docker images | grep anythingllm' and check the tag version. If the version is below 1.13.0, your deployment is vulnerable. Also verify that the filesystem plugin is enabled in your AnythingLLM configuration (it is enabled by default in the official Docker image).
Does Defensia detect CVE-2026-48116?
Yes — Defensia's CVE advisory scanner compares installed package versions and container images against the NVD database. If AnythingLLM or Docker is deployed on a monitored server, CVE-2026-48116 will appear in your dashboard with remediation steps.
Related Docker CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-48116. Free for 1 server.
Get started free