# CVE-2021-42040: An issue was discovered in MediaWiki through 1.36.2.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.16%, higher than 68% of CVEs (2026-12-01)
- Published: 2021-10-06T20:28:59.000Z
- Modified: 2026-06-17T04:09:12.313Z
- Also known as: BIT-MEDIAWIKI-2021-42040
- Weaknesses: CWE-835
- Assigned by: mitre

## Description

An issue was discovered in MediaWiki through 1.36.2. A parser function related to loop control allowed for an infinite loop (and php-fpm hang) within the Loops extension because egLoopsCountLimit is mishandled. This could lead to memory exhaustion.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mediawiki mediawiki: up to 1.36.2
- mediawiki (Bitnami): before 1.36.3

## Every score

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

## References

- <https://phabricator.wikimedia.org/T287347> (patch, vendor-advisory, web)
- <https://gerrit.wikimedia.org/r/q/I0caf6f129f94612b5bcf406a171aa5ffedea1f80> (patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42040> (web)

## Sources

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

---

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