7.5
CWE
835
Advisory Published
Updated

CVE-2021-42040

First published: Wed Oct 06 2021(Updated: )

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.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
MediaWiki MediaWiki<=1.36.2
<=1.36.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2021-42040?

    CVE-2021-42040 is a vulnerability discovered in MediaWiki through version 1.36.2, which allows for an infinite loop and potential memory exhaustion.

  • How severe is CVE-2021-42040?

    CVE-2021-42040 has a severity rating of 7.5 out of 10, which is considered high.

  • What software is affected by CVE-2021-42040?

    MediaWiki versions up to and including 1.36.2 are affected by CVE-2021-42040.

  • How can CVE-2021-42040 be exploited?

    CVE-2021-42040 can be exploited by using a parser function related to loop control, which can cause an infinite loop and potential memory exhaustion.

  • Is there a fix available for CVE-2021-42040?

    Yes, a fix for CVE-2021-42040 is available in newer versions of MediaWiki. It is recommended to upgrade to a fixed version.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203