Rapid7 Vulnerability & Exploit Database

MediaWiki: Unspecified Security Vulnerability (CVE-2021-30159)

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

MediaWiki: Unspecified Security Vulnerability (CVE-2021-30159)

Severity
4
CVSS
(AV:N/AC:L/Au:S/C:N/I:P/A:N)
Published
04/09/2021
Created
04/22/2021
Added
04/21/2021
Modified
11/08/2023

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.

Solution(s)

  • mediawiki-upgrade-1_31_12
  • mediawiki-upgrade-1_35_2

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;