[GH-ISSUE #5217] [Security] Docker privileged mode in CloudFormation + exec() in agent handler #4972

Closed
opened 2026-06-05 14:51:13 -04:00 by yindo · 1 comment
Owner

Originally created by @hhhashexe on GitHub (Mar 15, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5217

Found via SkillFence automated scan.

Finding 1: cloudformation_create_anythingllm.json — Docker container runs in privileged mode, giving full host access.

Finding 2: index.jsexec() shell command execution in agent handler — potential command injection if user input reaches this code path.

Recommendation:

  • Remove --privileged flag from Docker configuration
  • Use parameterized commands instead of exec()
  • Add input validation before shell execution

Scan: npx skillfence scan . (Verdict: BLOCK, 26 critical, 33 high)

Responsible disclosure via automated security scanning.

Originally created by @hhhashexe on GitHub (Mar 15, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5217 Found via [SkillFence](https://npmjs.com/package/skillfence) automated scan. **Finding 1:** `cloudformation_create_anythingllm.json` — Docker container runs in privileged mode, giving full host access. **Finding 2:** `index.js` — `exec()` shell command execution in agent handler — potential command injection if user input reaches this code path. **Recommendation:** - Remove `--privileged` flag from Docker configuration - Use parameterized commands instead of exec() - Add input validation before shell execution Scan: `npx skillfence scan .` (Verdict: BLOCK, 26 critical, 33 high) Responsible disclosure via automated security scanning.
yindo closed this issue 2026-06-05 14:51:13 -04:00
Author
Owner

@timothycarambat commented on GitHub (Mar 16, 2026):

Literally neither thing reported is even real. Both are hallucinations - banned from repo

<!-- gh-comment-id:4068706928 --> @timothycarambat commented on GitHub (Mar 16, 2026): Literally neither thing reported is even real. Both are hallucinations - banned from repo
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4972