MediaWiki WatchAnalytics
CVE-2025-62658
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege wiki user
-
ExploitSubmit crafted input to WatchAnalytics endpoint
-
ExecutionInjected SQL executes against backend database
-
ImpactRead or modify sensitive wiki data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a MediaWiki installation with the optional WatchAnalytics extension (version 1.43 or 1.44) deployed - this extension is not part of a default MediaWiki install. Per the CVSS vector, the attacker needs an authenticated low-privilege account (PR:L), passive user interaction must occur (UI:P), and the High attack complexity (AC:H) indicates additional conditions outside the attacker's direct control (such as specific timing, state, or configuration) must be met for reliable injection. The limiting factors are therefore: the extension must be installed, the attacker must hold valid credentials, and the non-trivial complexity reduces the chance of trivial mass exploitation. |
| Impact | This is a moderate-priority vulnerability rather than an emergency. The CVSS 4.0 base score of 7.5 reflects full compromise of the vulnerable system's confidentiality, integrity, and availability (VC:H/VI:H/VA:H) via a network vector (AV:N), but several metrics temper real-world urgency: Attack Complexity is High (AC:H), exploitation requires at least low-level authenticated privileges (PR:L), and passive user interaction is needed (UI:P). No EPSS score, CISA KEV listing, or public proof-of-concept was provided in the intelligence set, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The signals are internally consistent - a classic authenticated SQL injection (CWE-89) with meaningful impact but non-trivial preconditions - so this is a genuine but not drop-everything issue. The dominant factor limiting real-world risk is prevalence: WatchAnalytics is an optional, niche MediaWiki extension, so the exposed population is small. Note the only reference is a Wikimedia Phabricator task (T406380) with no attached CVSS or exploitation data in the feed, meaning exploitation status is inferred from the absence of KEV/POC signals rather than independently confirmed. |
| Exploit ScenarioDerived | An attacker with a low-privilege authenticated account on a MediaWiki wiki running the WatchAnalytics extension submits crafted input to an extension endpoint that is concatenated into a SQL query, injecting arbitrary SQL. Because the attack requires passive user interaction and has high complexity, the attacker likely must satisfy specific timing or configuration conditions to reliably trigger the flaw. No public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
SQL injection in the MediaWiki WatchAnalytics extension, affecting versions 1.43 and 1.44, allows an authenticated low-privilege user to inject arbitrary SQL into queries executed by the extension, potentially reading, modifying, or deleting data in the wiki's database. Exploitation is constrained: the WatchAnalytics extension is optional and not present in a default MediaWiki installation, the attacker must already hold valid credentials (CVSS 3.1 PR:L), passive user interaction is required (UI:R), and the assessed High attack complexity (AC:H) means additional timing, state, or configuration conditions must line up before injection succeeds reliably. There is no public exploit code identified at time of analysis and the issue is not listed in CISA KEV, so this is a moderate-priority finding rather than an emergency, though the impact on confidentiality, integrity, and availability is rated High when the preconditions are met.
RemediationAI
No vendor-released patch version was identified at time of analysis, so the first action is to track the Wikimedia Phabricator security task at https://phabricator.wikimedia.org/T406380 and the WatchAnalytics extension repository for a fixed revision, then update the extension to that revision as soon as it is published rather than waiting for a MediaWiki core release. Until a fix is available, the most reliable mitigation is to disable the extension entirely by removing or commenting out its wfLoadExtension line in LocalSettings.php; the trade-off is that all watchlist analytics and reporting features it provides become unavailable to your editors. If the feature cannot be disabled, restrict exposure by ensuring only trusted, vetted accounts exist on the wiki and by limiting account-creation and user-rights grants, since exploitation requires an authenticated low-privilege account and passive user interaction - this reduces but does not eliminate the attack surface. Additionally, run the MediaWiki database account with least privilege (no DDL/administrative rights on unrelated schemas) to cap the damage if injection succeeds, and review web server and database error logs for anomalous SQL syntax errors that may indicate injection attempts; note that log review is detective only and will not prevent exploitation.
Affected ProductsAI
The affected product is the WatchAnalytics extension for MediaWiki, specifically versions 1.43 and 1.44 as published for those MediaWiki release branches. Because the extension is optional, only wikis that have explicitly enabled it (typically via a wfLoadExtension call for WatchAnalytics in LocalSettings.php) on a MediaWiki 1.43 or 1.44 installation are in scope; a stock MediaWiki installation without the extension is not affected. No CPE identifiers were included in the intelligence provided, so version matching should be performed against the extension's own versioning rather than a CPE dictionary entry. The primary vendor reference for this issue is the Wikimedia Phabricator task https://phabricator.wikimedia.org/T406380, which should be consulted for the authoritative affected-version list and any subsequent fix publication.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a classic CWE-89 SQL Injection: 'Improper Neutralization of Special Elements used in an SQL Command.' MediaWiki extensions written in PHP are expected to build database queries through the platform's database abstraction layer (Wikimedia\Rdbms, e.g. select/insert/update/delete wrappers and addQuotes/parameter binding) so that user-supplied values cannot alter query structure. WatchAnalytics adds watchlist-analytics and reporting features to MediaWiki, so it both consumes user-controlled input (such as page identifiers, user names, and report parameters passed through web requests) and interpolates it into SQL statements. Where that input is concatenated into a query string rather than bound or escaped, an attacker can terminate the intended expression and append their own SQL, allowing the database to be manipulated with the privileges of the MediaWiki database account. The affected component is the extension itself rather than the MediaWiki core, and only wikis that have explicitly loaded the extension on MediaWiki 1.43 or 1.44 branches are exposed; no CPE strings were supplied with the report, and the impact scope is limited to the wiki's own database context (S:U in the assessed vector), not a cross-trust-boundary escalation.
Know when Mediawiki gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/S:N/AU:Y/R:U/V:C/RE:M/U:Amber
Network-reachable SQLi needing an authenticated low-privilege user (PR:L) and user interaction (UI:R), with complex preconditions (AC:H); full database impact and no scope change (S:U).
Primary rating from Vendor (c4f26cc8-17ff-4c99-b5e2-38fc1793eacc).
CVSS VectorVendor: c4f26cc8-17ff-4c99-b5e2-38fc1793eacc
DescriptionCVE.org
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foundation MediaWiki WatchAnalytics extension allows SQL Injection.This issue affects MediaWiki WatchAnalytics extension: 1.43, 1.44.
Executive ViewAI
MediaWiki installations running the optional WatchAnalytics extension on versions 1.43 or 1.44 carry a high-severity SQL injection flaw (CVE-2025-62658) that would let any user with an existing low-privilege account tamper with the wiki's underlying database, including reading, altering, or deleting content. Organizations that use WatchAnalytics for watchlist reporting are exposed, while the majority of MediaWiki deployments that never installed this extension are unaffected. Because no vendor patch is available, leadership should treat this as a contained but unpatched data-integrity risk requiring inventory and interim mitigation rather than an emergency response.
No vendor-released patch identified at time of analysis. Interim mitigations: disable or uninstall the optional WatchAnalytics extension where not essential; restrict watchlist/analytics pages to trusted accounts; run the MediaWiki database account with least privilege; enable database query logging and alerting for anomalous SQL from the extension; deploy WAF rules to block SQL injection patterns against watchlist endpoints; audit and reduce low-privilege and service accounts; monitor vendor advisories for a fix covering MediaWiki 1.43 and 1.44.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when DjVu or PDF file upload support is
The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,
An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi
The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf
The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
api.php in MediaWiki before 1.27.4, 1.28.x before 1.28.3, and 1.29.x before 1.29.2 has a Reflected File Download vulnera
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun
An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB