Vulnerability in MediaWiki
CVE-2021-30159
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS 0.015, 75.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- MediaWiki
- Debian Linux — versions 9.0, 10.0
- Fedoraproject Fedora — versions 33, 34
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (n0-traces/cve_monitor). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- phabricator.wikimedia.org/T272386 (Exploit, Patch, Vendor Advisory)
- DSA-4889 (vendor-advisory, Third Party Advisory)
- FEDORA-2021-f4223b6684 (vendor-advisory)
- FEDORA-2021-d298103d3a (vendor-advisory)
- [debian-lts-announce] 20210505 [SECURITY] [DLA 2648-1] mediawiki security update (mailing-list, Third Party Advisory)
- [debian-lts-announce] 20210506 [SECURITY] [DLA 2648-2] mediawiki regression update (mailing-list, Mailing List, Third Party Advisory)
- GLSA-202107-40 (vendor-advisory, Third Party Advisory)