What’s Vulnerable › Vulnerabilities

CVE-2024-58382: league/commonmark before 2.6.0 Denial of Service via Quadratic Complexity

Description

league/commonmark versions before 2.6.0 contain polynomial time complexity vulnerabilities in Markdown parsing that allow attackers to cause denial of service. Attackers can submit carefully crafted Markdown inputs designed to trigger worst-case performance, and sending multiple requests in parallel exhausts CPU resources and PHP-FPM processes.

Affected products

How to fix

Upgrade to a fixed version: thephpleague commonmark 2.6.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-58382 or the next vulnerability affects your stack