CVE-2021-30159: Medium severity mediawiki vulnerability

Published Apr 9, 2021
·
Updated

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(READLATEST) 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 Software

7 affected componentsFixes available
debian/mediawiki
1:1.31.16-1+deb10u21:1.31.16-1+deb10u61:1.35.11-1~deb11u11:1.35.13-1~deb11u11:1.39.4-1~deb12u11:1.39.5-1~deb12u11:1.39.5-1
MediaWiki MediaWiki<1.31.12
MediaWiki MediaWiki>=1.32.0<1.35.2
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Fedoraproject Fedora=33
Fedoraproject Fedora=34

Event History

Apr 9, 2021
CVE Published
via MITRE·06:12 AM
Data Sourced
via MITRE·06:12 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2021-30159?

The severity of CVE-2021-30159 is considered to be moderate due to the potential for unauthorized page deletions under specific conditions.

2

How do I fix CVE-2021-30159?

To fix CVE-2021-30159, update MediaWiki to a version greater than 1.31.12 or 1.35.2 as appropriate for your system.

3

Which versions of MediaWiki are affected by CVE-2021-30159?

CVE-2021-30159 affects MediaWiki versions before 1.31.12 and versions between 1.32.0 and 1.35.2 inclusive.

4

What are the risks of CVE-2021-30159 if left unpatched?

If left unpatched, CVE-2021-30159 could allow users to bypass restrictions and delete pages unexpectedly in certain scenarios.

5

What platforms are vulnerable to CVE-2021-30159?

CVE-2021-30159 affects users on Debian and Fedora platforms running the specified vulnerable versions of MediaWiki.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203