Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted HTTP request to Cargo query endpoint
-
DeliveryInject SQL metacharacters into query parameter (where/join)
-
ExploitBypass input neutralization in Cargo SQL builder
-
ExecutionExecute attacker-controlled SQL against wiki database
-
ImpactExtract or manipulate structured Cargo table 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 | The MediaWiki Cargo extension must be installed and active on the target wiki. Exploitation is possible against any endpoint that processes Cargo query parser functions (e.g., pages using {{#cargo_query:}}, {{#cargo_store:}}, or similar). The CVSS 4.0 vector (PR:N/AT:N) confirms no authentication or special attack preconditions are required against default configurations where Cargo queries are accessible to anonymous visitors - which is typical for public-facing wikis. Exploitation is limited when wikis configure the 'cargo-query' permission to require authenticated or privileged users; in such cases, the attacker must first obtain wiki credentials, raising the effective privilege bar. The vulnerability does not depend on a specific operating system, database backend configuration, or non-default MediaWiki setting beyond the presence of the Cargo extension itself. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) establishes this as remotely exploitable by unauthenticated attackers with no complexity barriers, which is the highest-risk exploitation profile for network services. However, the impact metrics are bounded at Low across all dimensions (VC:L/VI:L/VA:L/SC:L/SI:L/SA:L), yielding a score of 6.9 - reflecting that the database access achievable via Cargo's schema is constrained relative to a full database compromise. No EPSS data was provided, and this CVE is not listed in CISA KEV, indicating no confirmed active exploitation at time of analysis. The real-world risk is meaningful for any public-facing wiki running the Cargo extension: an unauthenticated attacker can probe the wiki database schema, exfiltrate structured content data, and potentially manipulate Cargo table records. The risk is reduced for wikis that restrict Cargo query execution to authenticated or privileged users via MediaWiki's permission system, but the CVSS vector assumes no such restriction is in place. Priority should be high for public wikis with sensitive structured data; lower for internal or read-only deployments. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a crafted HTTP GET or POST request to a MediaWiki page that invokes a Cargo query parser function, injecting SQL metacharacters into a query parameter such as the 'where' or 'join on' clause. The injected SQL is passed unsanitized to the database engine, allowing the attacker to enumerate Cargo table schemas, extract structured wiki data, or manipulate records. No public exploit code has been identified at time of analysis, but the low complexity of CWE-89 exploitation combined with the PR:N/AC:L profile means a basic UNION-based or error-based SQLi payload is a plausible first attempt. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 01, 2026
SQL injection in the Wikimedia Foundation's MediaWiki Cargo Extension exposes wiki deployments to unauthenticated database read and write operations across all versions prior to 1.43.9, 1.44.6, and 1.45.4. The Cargo extension's core function - accepting user-supplied query parameters to construct database queries - makes this a structurally sensitive attack surface, as improper neutralization of SQL special elements allows crafted input to escape intended query boundaries. No public exploit code has been identified at time of analysis, and CISA KEV listing is absent, but the PR:N/AC:L/AT:N CVSS 4.0 vector confirms exploitation requires no authentication or special preconditions against default-accessible Cargo query endpoints.
RemediationAI
Upgrade the Cargo extension to version 1.43.9, 1.44.6, or 1.45.4 depending on the MediaWiki branch in use - these are the vendor-confirmed fixed releases. The upstream code fixes are documented in Gerrit code reviews at https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Cargo/+/1279498 and https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Cargo/+/1269701, and the issue is tracked at https://phabricator.wikimedia.org/T422774. As a compensating control prior to patching, restrict access to Cargo query functionality by raising the 'cargo-query' user right to require authentication or a trusted group via LocalSettings.php ($wgGroupPermissions), which limits the exposed attack surface to logged-in users rather than anonymous visitors. Note that restricting by IP allowlist at the web server layer is not sufficient alone if the wiki has public user registration enabled.
Affected VersionsENISA
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 Wikimedia Cargo extension (CPE: cpe:2.3:a:the_wikimedia_foundation:mediawiki_-_cargo_extension:*:*:*:*:*:*:*:*) adds structured data storage and retrieval to MediaWiki wikis, allowing editors to define typed data tables and query them via parser functions like {{#cargo_query:}}. These query parameters are passed through to the underlying relational database (typically MySQL/MariaDB). CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) indicates that user-controlled input reaches SQL query construction without adequate escaping or parameterization, enabling injection of arbitrary SQL clauses. The vulnerability is rooted in how Cargo translates wiki markup query parameters into SQL - a pattern historically prone to injection when sanitization is incomplete. The Gerrit patches at /r/c/mediawiki/extensions/Cargo/+/1279498 and /r/c/mediawiki/extensions/Cargo/+/1269701 represent the upstream fixes reviewed and merged.
Know when Mediawiki Cargo Extension 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:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L
Network-reachable with no auth (PR:N); scope change justified as database is a separate component affected beyond the web application.
Primary rating from Vendor (wikimedia-foundation).
CVSS VectorVendor: wikimedia-foundation
Lifecycle Timeline
1DescriptionCVE.org
Improper neutralization of special elements used in an SQL command ('SQL injection') vulnerability in The Wikimedia Foundation Mediawiki - Cargo Extension allows SQL Injection.
This issue affects Mediawiki - Cargo Extension: from * before 1.43.9,1.44.6,1.45.4.
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.
More in Mediawiki Cargo Extension
View allStored cross-site scripting in the Wikimedia Foundation's MediaWiki Cargo Extension (all versions before 3.9.1) allows a
Reflected cross-site scripting in the MediaWiki Cargo extension (versions through 3.9.4) lets remote, unauthenticated at
Reflected cross-site scripting in the MediaWiki Cargo extension (versions through 3.9.4) allows an unauthenticated remot
Reflected cross-site scripting in the MediaWiki Cargo extension, affecting all versions through 3.9.4, allows an unauthe
Stored cross-site scripting (XSS) in the MediaWiki Cargo extension through version 3.9.4 allows attackers to inject pers
SQL injection in the Wikimedia Foundation's Cargo Extension for MediaWiki exposes all installations running versions pri
Stored cross-site scripting (XSS) in the Mediawiki Cargo Extension before version 3.8.7 allows authenticated users to in
Stored XSS vulnerability in Wikimedia Cargo Extension before 3.8.7 allows authenticated users with page editing permissi
Stored XSS in Wikimedia Cargo Extension before 3.8.7 allows authenticated users with page editing privileges to inject m
Reflected cross-site scripting in the MediaWiki Cargo extension before 1.46.1 lets remote attackers inject script into a
Cross-site scripting (XSS) vulnerability in Mediawiki Cargo Extension before version 3.8.7 allows authenticated users to
Stored cross-site scripting in the MediaWiki Cargo extension through version 3.9.4 lets an authenticated user with conte
EUVD-2026-41127
GHSA-cj99-hcr5-53g3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB