CVE-2021-41800: Mediawiki/core Denial of Service Vulnerability
MODERATECVE-2021-41800 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Mediawiki/core libraries in the Packagist ecosystem. The issue involves mediawiki allows a denial of service. Remediation is available by upgrading affected packages to version 1.36.2.
CVE-2021-41800 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2021-41800
To remediate this vulnerability, upgrade all affected Mediawiki/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade mediawiki/core to 1.36.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for mediawiki/core
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-41800, inspect your project dependencies for Mediawiki/core:
inspect dependencies for mediawiki/core
Analyze the terminal output to locate any version of Mediawiki/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.36.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Mediawiki/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-41800 Affected Mediawiki/core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mediawiki/core
|
Packagist |
< 1.36.2
|
1.36.2
|
References
Frequently Asked Questions
What is CVE-2021-41800?
Which Mediawiki/core versions are affected?
What version fixes CVE-2021-41800?
Is mediawiki/core affected?
What is the CVSS score of CVE-2021-41800?
What CWE is associated with CVE-2021-41800?
How can I check Packagist dependencies for CVE-2021-41800?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c8wv-qwwc-6j73",
"modified" : "2024-02-01T21:50:08Z",
"published" : "2022-05-24T19:17:14Z",
"aliases" : [ "CVE-2021-41800" ],
"summary" : "MediaWiki allows a denial of service",
"details" : "MediaWiki before 1.36.2 allows a denial of service (resource consumption because of lengthy query processing time). Visiting Special:Contributions can sometimes result in a long running SQL query because PoolCounter protection is mishandled.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "mediawiki/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.36.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-41800"
}, {
"type" : "WEB",
"url" : "https://github.com/wikimedia/mediawiki/commit/781caf83dba90c18349f930bbaaa0e89f003f874"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CJDYJQWT43GBD6GNQ4OW7JOZ6WQ6DZTN"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MDBPECBWN6LWNSWIQMVXK6PP4YFEUYHA"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QNEAI2T3Y65I55ZB6UE6RMC662RZTGRX"
}, {
"type" : "WEB",
"url" : "https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/2IFS5CM2YV4VMSODPX3J2LFHKSEWVFV5"
}, {
"type" : "WEB",
"url" : "https://phabricator.wikimedia.org/T284419"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202305-24"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-01T21:50:08Z",
"nvd_published_at" : "2021-10-11T08:15:00Z"
}
}