# CVE-2026-48116: AnythingLLM: RCE via ripgrep --pre argument injection in filesystem-search-files agent skill

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.54% (percentile 39, 2026-11-26)
- **CWE:** CWE-77, CWE-88
- **Published:** 2026-05-28T21:19:51.965Z
- **Modified:** 2026-07-21T10:10:00.103Z

## Who should check

- Anyone running Mintplex-Labs anything-llm \< 1.13.0

## Description

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.

## Affected and fixed versions

- Mintplex-Labs anything-llm: \< 1.13.0 (cvelist)

## Mitigation

- Upgrade anything-llm to 1.13.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-48116. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-48116.md
Affected: Mintplex-Labs anything-llm < 1.13.0
Fixed in: Mintplex-Labs anything-llm 1.13.0

Steps:
1. Search this machine and project for Mintplex-Labs anything-llm: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-48116 being exploited?

There is no confirmed exploitation: CVE-2026-48116 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.54% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-48116?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-48116?

Mintplex-Labs anything-llm \< 1.13.0.

### Is there a fix for CVE-2026-48116?

Yes. Fixed in Mintplex-Labs anything-llm 1.13.0. Upgrade anything-llm to 1.13.0 or later.

### How do I check if I'm affected by CVE-2026-48116?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Mintplex-Labs/anything-llm/security/advisories/GHSA-6hrp-7mw6-8v59>
- patch: <https://github.com/Mintplex-Labs/anything-llm/commit/94ed62d320df1a06c229e4bc3ee09c2cb5111b33>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-48116>

HTML: <https://flawdb.com/CVE-2026-48116> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-48116>
