---
title: Mittwald postmortem: a shell injection in its MCP server's SSH-key tool let an attacker read every active user's OAuth tokens and act in 56 customer projects; follow-on intrusion used a Neos zero-day | ctxsec
url: https://ctxsec.com/items/mittwald-mcp-server-postmortem-shell-injection-ssh-key-tool-oauth-tokens-56-projects-neos-zero-day
description: "German host Mittwald says an attacker exploited its MCP server from Oct 27 (first tests Oct 21) via a key-generation tool that passed the comment and passphrase fields into execSync(), then read the session store holding API tokens for all active users, including staff. Mittwald says it built the server largely with AI coding agents and its review and static-analysis guardrails were not ready; the MCP server stays offline."
status: "official (Mittwald postmortem)"
published: 2026-11-27
---

> German host Mittwald says an attacker exploited its MCP server from Oct 27 (first tests Oct 21) via a key-generation tool that passed the comment and passphrase fields into execSync(), then read the session store holding API tokens for all active users, including staff. Mittwald says it built the server largely with AI coding agents and its review and static-analysis guardrails were not ready; the MCP server stays offline.

[← Context & Harness Attacks](/context) · [markdown](/items/mittwald-mcp-server-postmortem-shell-injection-ssh-key-tool-oauth-tokens-56-projects-neos-zero-day.md)

official (Mittwald postmortem)

2026-11-27 2:49 PM ET

### Mittwald postmortem: a shell injection in its MCP server's SSH-key tool let an attacker read every active user's OAuth tokens and act in 56 customer projects; follow-on intrusion used a Neos zero-day

- **Entry:** MCP tool that generated SSH keys interpolated two tool-call text fields into an ssh-keygen command run through a shell.
- **Blast radius:** the server holds valid access/refresh tokens for every active user; the attacker created SSH users and API tokens in others' names and copied config files and credentials. 56 projects confirmed compromised, including projects whose owners never used the MCP server.
- **Timeline:** exploited from Oct 27, discovered Nov 4; second phase from Nov 9 using throwaway accounts and a Neos CMS zero-day against mittwald.de on the night of Nov 11-12 (Neos fix Nov 13).
- **Response:** MCP server shut down, all tokens revoked, affected projects isolated; mStudio login and SSH were taken down Nov 5-7 and Nov 12-13.
- **Lesson (Mittwald's own):** agent-written code raised review volume; no static check flagged execSync with interpolated variables. Never build shell strings from tool parameters, keep token stores out of tool containers, narrow scopes, and lock down egress.

Sources: [Mittwald: Postmortem: Wie ein Angreifer über unseren MCP-Server und Neos eindrang](https://www.mittwald.de/blog/mittwald/postmortem-wie-ein-angreifer-ueber-unseren-mcp-server-und-neos-eindrang) · [Mittwald: Sicherheitsvorfall am MCP-Server](https://www.mittwald.de/blog/mittwald/sicherheitsvorfall-am-mcp-server)
