CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2021 · Mediawiki

CVE-2021-30159
Mediawiki vulnerability

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 products

Mediawiki, Debian Linux, Fedora. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Mediawiki runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Mediawiki products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.