# CVE-2021-30159: An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2.

- Severity: Medium 4.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.52%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-09T06:12:55.000Z
- Modified: 2026-06-17T03:49:46.083Z
- Also known as: BIT-MEDIAWIKI-2021-30159
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mediawiki mediawiki: before 1.31.12; from 1.32.0 before 1.35.2
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 33; 34
- mediawiki (Bitnami): before 1.31.12; from 1.32.0 before 1.35.2

## Every score

- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://phabricator.wikimedia.org/T272386> (exploit, patch, vendor-advisory, web)
- <https://www.debian.org/security/2021/dsa-4889> (third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/26UJGHF7LJDOCQN6A3Z4PM7PYRKENJHE/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2OMSV7B2TCFBOCICN3B4SMQP5HVRJQIT/> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2021/05/msg00003.html> (mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2021/05/msg00006.html> (mailing-list, third-party-advisory, web)
- <https://security.gentoo.org/glsa/202107-40> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-30159> (web)

## Sources

- CVE List: [CVE-2021-30159](https://www.cve.org/CVERecord?id=CVE-2021-30159), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-30159](https://nvd.nist.gov/vuln/detail/CVE-2021-30159), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MEDIAWIKI-2021-30159](https://osv.dev/vulnerability/BIT-MEDIAWIKI-2021-30159), Apache-2.0, modified 2025-04-03

---

Page: https://cve.day/CVE-2021-30159 · Whole record: https://cve.day/CVE-2021-30159.json · Rebuilt by cve.day 2026-11-25T22:58:00.689Z
