CVE-2021-30159
publishedmediawiki: users can bypass intended restrictions on deleting pages in certain "fast double move" situations
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | buster | mediawiki | Advisory build | 1:1.31.14-1~deb10u1 | DSA-4889-1 |
| Debian | stretch | mediawiki | Advisory build | 1:1.27.7-1~deb9u8 | DLA-2648-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
7- [debian-lts-announce] 20210505 [SECURITY] [DLA 2648-1] mediawiki security update https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html
- [debian-lts-announce] 20210506 [SECURITY] [DLA 2648-2] mediawiki regression update https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html
- FEDORA-2021-f4223b6684 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/26UJGHF7LJDOCQN6A3Z4PM7PYRKENJHE/
- FEDORA-2021-d298103d3a https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2OMSV7B2TCFBOCICN3B4SMQP5HVRJQIT/
- https://phabricator.wikimedia.org/T272386
- GLSA-202107-40 https://security.gentoo.org/glsa/202107-40
- DSA-4889 https://www.debian.org/security/2021/dsa-4889
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1d73520c976f4cac16759a94a94b460e92260fb25b739ac71127cba21d1a50a9
- Ingested
- 23 Sep 2026, 07:54:09 UTC
- Source record
- Official CVE record