Vulnerability · Published Apr 9, 2021 · Assigned by mitre
CVE-2021-30159
Medium 4.3
In plain English
A medium-severity security flaw in the mediawiki package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mediawiki | 1:1.35.2-1 | DEBIAN-CVE-2021-30159 |
| Debian:13 | mediawiki | 1:1.35.2-1 | DEBIAN-CVE-2021-30159 |
| Debian:14 | mediawiki | 1:1.35.2-1 | DEBIAN-CVE-2021-30159 |
| Ubuntu:25.10 | mediawiki | no fix listed | UBUNTU-CVE-2021-30159 |
| Ubuntu:26.04:LTS | mediawiki | no fix listed | UBUNTU-CVE-2021-30159 |
| Ubuntu:26.10 | mediawiki | no fix listed | UBUNTU-CVE-2021-30159 |
Affected products (as reported)
References
- https://phabricator.wikimedia.org/T272386 x_refsource_MISC
- DSA-4889 vendor-advisory, x_refsource_DEBIAN
- FEDORA-2021-f4223b6684 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-d298103d3a vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20210505 [SECURITY] [DLA 2648-1] mediawiki security update mailing-list, x_refsource_MLIST
- [debian-lts-announce] 20210506 [SECURITY] [DLA 2648-2] mediawiki regression update mailing-list, x_refsource_MLIST
- GLSA-202107-40 vendor-advisory, x_refsource_GENTOO