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.

Severity (CVSS NVD)4.3Medium
Exploit odds (30 days)1.5%top 25.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12mediawiki1:1.35.2-1DEBIAN-CVE-2021-30159
Debian:13mediawiki1:1.35.2-1DEBIAN-CVE-2021-30159
Debian:14mediawiki1:1.35.2-1DEBIAN-CVE-2021-30159
Ubuntu:25.10mediawikino fix listedUBUNTU-CVE-2021-30159
Ubuntu:26.04:LTSmediawikino fix listedUBUNTU-CVE-2021-30159
Ubuntu:26.10mediawikino fix listedUBUNTU-CVE-2021-30159

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References