Vulnerability Description
An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2. Users can bypass intended restrictions on deleting pages in certain "fast double move" situations. MovePage::isValidMoveTarget() uses FOR UPDATE, but it's only called if Title::getArticleID() returns non-zero with no special flags. Next, MovePage::moveToInternal() will delete the page if getArticleID(READ_LATEST) is non-zero. Therefore, if the page is missing in the replica DB, isValidMove() will return true, and then moveToInternal() will unconditionally delete the page if it can be found in the master.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Mediawiki | Mediawiki | < 1.31.12 |
| Debian | Debian Linux | 9.0 |
| Fedoraproject | Fedora | 33 |
References
- https://lists.debian.org/debian-lts-announce/2021/05/msg00003.htmlThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00006.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://phabricator.wikimedia.org/T272386ExploitPatchVendor Advisory
- https://security.gentoo.org/glsa/202107-40Third Party Advisory
- https://www.debian.org/security/2021/dsa-4889Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00003.htmlThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00006.htmlMailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapro
- https://phabricator.wikimedia.org/T272386ExploitPatchVendor Advisory
- https://security.gentoo.org/glsa/202107-40Third Party Advisory
- https://www.debian.org/security/2021/dsa-4889Third Party Advisory
FAQ
What is CVE-2021-30159?
CVE-2021-30159 is a vulnerability with a CVSS score of 4.3 (MEDIUM). An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2. Users can bypass intended restrictions on deleting pages in certain "fast double move" situations. MovePage...
How severe is CVE-2021-30159?
CVE-2021-30159 has been rated MEDIUM with a CVSS base score of 4.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-30159?
Check the references section above for vendor advisories and patch information. Affected products include: Mediawiki Mediawiki, Debian Debian Linux, Fedoraproject Fedora.