
Mittwald Breach: A Shell Injection in Its Own MCP Server
- OrcaNEWOrcaCyber: Inkling 2 Mini Abliterated / Uncensored2026-11-23$0.20 / $0.50 per 1M tokens · 204 tok/s
- thinkingmachinesNEWThinking Machines: Inkling 2 Mini2026-11-21$0.07 / $0.30 per 1M tokens · 231 tok/s
- OrcaNEWOrcaCyber: Hy4 Flash Abliterated / Uncensored2026-11-18$0.07 / $0.28 per 1M tokens · 203 tok/s
- openaiNEWOpenAI: GPT-6.2 Astra2026-11-17$8.00 / $40.00 per 1M tokens · 89 tok/s
- openaiNEWOpenAI: GPT-6.2 Sol2026-11-17$2.00 / $10.00 per 1M tokens · 149 tok/s
- tencentNEWTencent: Hy4 Flash2026-11-16$0.07 / $0.28 per 1M tokens · 169 tok/s
- AlibabaNEWQwen: Qwen4 Max2026-11-16$1.50 / $4.50 per 1M tokens · 94 tok/s
- OrcaNEWOrcaCyber: Ling 3.2 Flash Abliterated / Uncensored2026-11-14$0.60 / $1.80 per 1M tokens · 101 tok/s
- OrcaNEWOrcaCyber: Step 5 Preview Abliterated / Uncensored2026-11-14$2.00 / $5.40 per 1M tokens · 133 tok/s
- GoogleGoogle: Gemini 4 Carbon2026-11-10$2.00 / $10.00 per 1M tokens · 89 tok/s
- AnthropicAnthropic: Claude Fable 5.22026-11-09$8.00 / $40.00 per 1M tokens · 100 tok/s
- OrcaOrcaCyber: GLM 5.3 Abliterated / Uncensored2026-11-04$3.00 / $5.00 per 1M tokens · 99 tok/s
- OrcaOrcaCyber: Hy4 Abliterated / Uncensored2026-11-04$0.80 / $1.60 per 1M tokens · 124 tok/s
- OrcaOrcaCyber: Kimi K3.1 Pro Abliterated / Uncensored2026-11-04$2.00 / $5.00 per 1M tokens · 101 tok/s
- tencentTencent: Hy42026-11-04$0.83 / $2.50 per 1M tokens · 126 tok/s
- OrcaOrcaCyber: MiniMax M3.1 Flash Abliterated / Uncensored2026-10-29$0.80 / $1.60 per 1M tokens · 121 tok/s
- OrcaOrcaCyber: GLM 5.3 Flash Abliterated / Uncensored2026-10-27$0.80 / $1.60 per 1M tokens · 86 tok/s
- openaiOpenAI: GPT-6.1 Terra2026-10-26$1.00 / $5.00 per 1M tokens · 292 tok/s
- OrcaOrcaCyber: Qwen3.8 Flash Next Abliterated / Uncensored2026-10-26$0.80 / $1.60 per 1M tokens · 92 tok/s
- OrcaOrcaCyber: MiMo V2.6 Flash Abliterated / Uncensored2026-10-26$0.80 / $1.60 per 1M tokens · 43 tok/s
On 7 November 2026 the German web host Mittwald CM Service disclosed that an attacker had entered its platform through its own Model Context Protocol server — the connector that lets customers drive the mStudio hosting panel from AI assistants — and that 56 customer projects had been compromised. The post-mortem Mittwald published on 25 November traced the entry to a shell injection in a single tool: the comment and passphrase arguments of an SSH-key helper were interpolated into a command string and run through execSync, so a crafted comment became a command inside the server's container. That server held a live access and refresh token for every active user, Mittwald employees included. This record is one entry in the AI incident archive, which holds it alongside the other MCP and agent-infrastructure incidents of the past year, each with its own sources, severity grade and confidence flag.
Mittwald CM Service is a North Rhine-Westphalia host that sells mainly to web agencies, and mStudio is the panel where those agencies manage sites, hosting, mail and databases. The MCP server was the newest door on that panel, added so that an assistant could read and change a customer's hosting configuration on their behalf. It is worth being precise about what kind of AI incident this is, because the archive's ai_involvement flag reads "confirmed" for two separate reasons and only one of them is about the attacker: the compromised system was an AI-integration service, and Mittwald says it built that service largely with AI coding agents. Whether the person on the other end was using AI is a different question, and the evidence for it is thinner.
The flaw was in a tool that had no reason to exist
Mittwald's post-mortem, written by Martin Helmich on 25 November, is unusually explicit about the code. One MCP tool generated an SSH keypair when a caller supplied no key of their own. Its two caller-controlled parameters were comment and passphrase. The implementation assembled those values into a string and handed it to Node's execSync, in the shape ssh-keygen -t ed25519 -f "${keyPath}" -N "${passphrase}" -C "${comment}".
The double quotes do not help. Shell command substitution still runs inside double quotes, and a value containing a quote character can close the string and start a new command. A comment such as $(curl ...) was executed by the shell before ssh-keygen ever started. Mittwald classifies the result as a full shell injection, and therefore remote code execution, in the MCP server's container.
Two details in the post-mortem make the bug worse than a careless line. The first is that the function deleted the private key immediately and returned only the public half, so as written it served no purpose — the code was scaffolding that had never been justified. The second is what it left behind. An injected command could force the error path, and the error path skipped cleanup: Mittwald found 161 orphaned keypairs prefixed mcp-eval-key- in the container, and three of them carried attacker traces, including the output of id, the container's hostname and an outbound curl. The prefix is the tell — eval code, in production. The fix it should have had, Mittwald writes, was execFileSync with an argument array, or generating the key in-process with crypto.generateKeyPairSync.
One container, every user's session token
The injection was the way in; the token design is why the way in mattered. Customers authenticated to the MCP server over OAuth2, and the server stored an access token and a refresh token per session so it could act in that user's name against mStudio. Mittwald's own summary of the consequence is the sentence that should be quoted from this incident: "Der MCP-Server hält jederzeit die gültigen Tokens aller aktiven Nutzer*innen" — the MCP server holds the valid tokens of all active users at all times.
That turned one container into every account. The session store was readable from inside the container, the granted scopes were often broad, staff accounts could reach large numbers of production projects, the filesystem was writable, and the container had outbound internet access. Nothing had to be escalated. Whoever held the shell could read the store and choose whose identity to wear, and the first identity chosen, at 16:25 on 27 October, was an employee's.
This is where the blast radius comes from, and where the vendor's own account changed between documents. On 9 November, webhosting.today reported Mittwald's position that customers who had never used the MCP server were unaffected. The 25 November post-mortem widens it: everyone who had used the MCP server was affected, along with the projects their accounts could reach — even where those project owners had never touched MCP at all. A reader who took the earlier guidance as final would have drawn the wrong conclusion about their own exposure.
How agent-written code reached production
Mittwald states that the MCP server was largely built with AI coding agents, and that its review and guardrails were immature. The post-mortem's explanation of why nobody caught the bug is specific rather than apologetic: the code looked plausible, the mcp-eval-key name suggested test code rather than anything that would ship, and no static analysis step flagged an execSync call with interpolated variables. Mittwald calls the result an "unverzeihliche Schwachstelle" — an unforgivable weakness — and says it met MITRE's criteria for that category.
That is an AI-safety claim of a narrow and checkable kind, and it should be read as one. The claim is not that an AI wrote a bug that a human would not have written; execSync with string interpolation is one of the oldest mistakes in Node. The claim is that a pipeline fast enough to produce a working server outran the review that would have caught a known-bad pattern, and that the test-flavoured naming made the bad pattern look intentional. Nothing in either Mittwald document establishes which agent or model was used, how much of the code it produced, or what fraction of the server was reviewed by a person.
The attacker had eleven days and used most of them
The first probe came on the evening of 21 October, while the hosting industry was absorbed by PHP2Shell. On 23 October the attacker behaved like an ordinary customer: registering test accounts, installing extensions, trying simple injections. At 14:58 on 27 October another account was registered; at 15:03 it exploited the tool for a container shell; at 16:25 it began spending stolen tokens.
What followed reads like a patient, mostly unsuccessful campaign that kept finding small openings. On 28 October the attacker started short-lived containers that mounted neighbouring volumes, collected configuration files, keys, database dumps and credential material, then removed the containers — and in some customer projects took over n8n owner accounts along with the key that encrypts stored n8n credentials. On 29 and 30 October it created API tokens, invited its own account as owner of a customer account (the invitation was never accepted), created SSH users in about ten projects, and abused extension webhooks for server-side request forgery, rewriting a webhook URL more than 2,000 times toward internal addresses; Mittwald says only limited metadata came back. On 2 November a routine deployment recreated the MCP container and destroyed the earlier container logs. On 3 and 4 November the attacker re-read the session store, filtered for employee tokens, triggered 78 staff password resets (none were completed), opened a reverse tunnel and scanned the adjacent network without result. Several thousand tokens were taken in total; most had expired, but hundreds were still valid.
Detection came on the morning of 4 November. The first attacker account was blocked at 11:11 and the status page moved to "investigating" at 12:53; the MCP server was shut down, every token revoked, the OAuth client removed, staff mStudio accounts disabled and attacker artefacts deleted. Projects showing traces were locked shortly after midnight, registration was disabled, external forensic specialists were engaged and the authorities were notified — a detail The Record and webhosting.today both carry, and which no regulator has since expanded on: no notice from the BSI or a German data-protection authority appeared in the coverage reviewed for this article. mStudio login and SSH access returned at 10:56 on 7 November, with passkeys offered for the first time.

Phase two: the second breach came through the CMS
Mittwald had restored access on 7 November. By 9 November the attacker was back, and the second phase did not touch MCP at all. Disposable accounts, compromised customer-centre hosting accounts, and unpatched WordPress plugins — including the Hotel Booking flaw CVE-2023-5991 and the Avada theme flaw CVE-2022-1386 — were used as a relay. On one customer server the attacker logged in with passwords for eight hosting accounts, planted cronjob webshells, failed to break out of the account isolation, and then succeeded in jumping into a second account once.
Then, at 01:28 on 12 November, Mittwald detected a compromise of its own website. The flaw was in Neos, the CMS behind mittwald.de, by way of the Flow framework underneath it. Flow accepted file uploads for the Neos backend and processed them before checking whether the caller was authenticated, so a single unauthenticated request could place a file in a public directory; the list of blocked extensions had gaps that let .phar through, and Mittwald's hosting environment executed PHP in that directory, which turned an upload flaw into a webshell. Through it the attacker read the site configuration and database, including Neos backend password hashes, overwrote one backend password, created two administrator accounts, opened an outbound tunnel and scanned the neighbouring network without result. The site's content was not altered. Mittwald reported the flaw to the Neos project at 02:33, restricted SSH at 02:51 and disabled mStudio and customer-centre login at 04:10.
This part of the record has the corroboration the MCP part lacks, and it is worth naming precisely because it is the only document in the set that Mittwald did not write. The Neos project published a security advisory on 13 November 2026 under GHSA-7wrr-qcrp-4hhf, rated CVSS 9.8 critical, describing an unauthenticated arbitrary file upload in which "the upload is processed before the security policy of the called action is enforced" and "the list of forbidden file extensions had gaps". It lists Flow up to and including 8.3.21, 8.4.0 to 8.4.6, 9.0.0 to 9.0.9, 9.1.0 to 9.1.4 and 9.2.0 to 9.2.2 as affected, and 8.3.22, 8.4.7, 9.0.10, 9.1.5 and 9.2.3 as fixed — and it credits the finder as mittwald. The advisory does not say the flaw was exploited in the wild, and it carries no CVE identifier. Its dates match Mittwald's account to the day, which is the closest thing to independent verification anywhere in this record.
What is established, what Mittwald infers, and what nobody has shown
The archive grades this record confidence A and does not flag it as disputed, and that is defensible: no party contests that the breach happened, that the entry point was the MCP server, or that 56 projects were compromised. But confidence in the event is not the same as confidence in every sentence attached to it, and the difference is where a reader needs help. Mittwald's own documents are careful about this; the coverage was less so.

The AI attribution deserves its own paragraph, because it travelled further than its evidence. Robert Meyer, Mittwald's managing director, said the attacker appeared to have used AI tools, citing logs in which steps that "would take significantly longer for a human attacker" were seconds apart. The Record, which reported the disclosure on 9 November under the headline "Alleged AI-aided cyberattack", noted that Mittwald provided no other evidence and did not immediately answer how it distinguished AI tools from conventional scripts, which can also move faster than a person clicking. The 25 November post-mortem repeats the inference and adds detail — heavy parallelism, rotating proxies, maintenance-style account names — without adding a method. Nothing Mittwald has published identifies a tool, a model or a technique that would separate AI-assisted operation from well-automated operation.
One question that the first week's coverage opened has since been closed, and it is worth noting because it shows the post-mortem doing real work. On 9 November, The Record reported that it was unclear whether the defect sat in Mittwald's own code or in an open-source MCP library. The 25 November document answers it: the tool was Mittwald's, the string was Mittwald's, and the only third-party component involved was Node's standard library. Clear Function, a software consultancy that reconstructed the incident, frames the broader lesson the same way its own sources do — that the emerging MCP specification already forbids a server from passing through the token it received from the client, and that Mittwald's server was doing something close to the opposite by holding every user's token at once. That is a design observation about a draft standard, not an additional finding about this breach.
What Mittwald changed
The remediation list in the post-mortem is long and mostly architectural, which is the right shape for this failure. The MCP server remains offline with no return date. A future version is specified to run on a read-only filesystem with no outbound network access except to Mittwald's own API, to separate tools from sessions, to issue narrower and shorter-lived tokens, and to log centrally into a SIEM.
Around the code, Mittwald has added mandatory review rules for agent-generated code, expanded CI checks and AI-assisted vulnerability scanning — the direct answer to the execSync that no static analysis saw. Around the accounts, mStudio now offers passkeys, staff MFA rules are stricter, and login requires a captcha plus email confirmation. Extension webhook URLs are validated before use, which closes the SSRF path, and Neos upload directories no longer execute scripts, which closes the webshell path. Mittwald also built a second SIEM with more log sources including customer-centre hosting, put a 24/7 shift team on its alerts from 14 November, began preserving incident-relevant logs separately, and added the ability to disable a single project or function instead of a whole platform — a direct lesson from having had to suspend mStudio and SSH for everyone.
Customers were told to change their mStudio password, enable MFA or passkeys, audit API keys, project tokens, SSH users and SSH keys, rotate third-party credentials, and tell everyone else with access to their projects. For restorations from backup, Mittwald said it would discuss case by case which changes since 27 October to keep. A detail worth flagging for anyone assessing the response: the attacker's tampering included creating SSH users in about ten projects and inviting an account as co-owner in at least one, so an audit that only checks passwords would miss what was actually done.
AI on both sides, and only one account of it is documented
The most striking thing in the post-mortem is not the attacker's tooling. It is the defenders'. Mittwald says a self-hosted DeepSeek model — the post-mortem does not name the version — identified the decisive request in the access logs and the corresponding location in the source code within ten minutes. AI agents now pre-sort SIEM alerts and take bounded first actions, with humans retaining the final decision. That is a documented, dated, specific use of a model in incident response, described by the organisation that ran it.
Set it against the other side of the same document. The attacker's AI use is inferred from pace. The defenders' AI use is described with a model, a task and a time-to-result. Both claims come from the same authors, in the same post, and they do not carry the same weight — and the one that travelled into headlines was the weaker of the two. For anyone building the case that AI is changing incident response, the ten-minute log triage is the evidence. For anyone building the case that AI is changing attack, this incident is a plausible data point with an unstated method, and the archive is right to record the breach as established while leaving the attribution where Mittwald left it.

What the record will be used for is probably not the shell injection. MCP servers holding upstream credentials for every connected user is a pattern, not a one-off, and the archive's neighbouring entries on command injection in MCP tooling and on token theft from AI coding tools describe the same exposure arriving by different routes. Clear Function's reconstruction makes the point in standards terms: revocation is damage control, because revoking a token does not un-read it. Mittwald's own incident shows what that costs when the token belongs to an employee who can reach production projects — in this case, 56 of them.
