CVE-2004-1405 in Mediawiki
MediaWiki 1.3.8 and earlier, when used with Apache mod_mime, does not properly handle files with two file extensions, such as .php.rar, which allows remote attackers to upload and execute arbitrary code.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Mediawiki | Mediawiki | 1.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4+6 more1.3.5 1.3.6 1.3.7 1.3.8 1.3.10 1.3.11 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
MediaWiki 1.3.8 and earlier, when used with Apache mod_mime, does not properly handle files with two file extensions, such as .php.rar, which allows remote attackers to upload and execute arbitrary code.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2004-1405 |
|---|---|
| BreachSpider ID | BS-2004-GLOBAL-165427-H |
| CVSS vector | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Published | 2004-12-31 |
| Last modified | 2026-06-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
MediaWiki 1.3.8 and earlier versions, when used with Apache mod_mime, are vulnerable to remote code execution due to improper handling of files with multiple extensions.
Attackers can exploit this vulnerability by uploading a file with a double extension, such as .php.rar, which can be interpreted as a PHP file by the server, leading to arbitrary code execution.
Questions
What is CVE-2004-1405?
MediaWiki 1.3.8 and earlier versions, when used with Apache mod_mime, are vulnerable to remote code execution due to improper handling of files with multiple extensions.
What is the CVSS score for CVE-2004-1405?
CVE-2004-1405 has CVSS 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. EPSS: 5.2%.
Is CVE-2004-1405 actively exploited?
Public exploit available for CVE-2004-1405. Exploitation risk elevated.
How do I remediate CVE-2004-1405?
Priority: IMMEDIATE.
What systems are affected by CVE-2004-1405?
CVE-2004-1405 affects Mediawiki Mediawiki.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Mediawiki","product":"Mediawiki","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.