GHSA-c2pc-g5qf-rfrf: league/commonmark's quadratic complexity bugs may lead to a denial of service
Several polynomial time complexity issues in league/commonmark may lead to unbounded resource exhaustion and subsequent denial of service.
Malicious users could trigger that inefficient code with carefully crafted Markdown inputs that are specifically designed to ensure the worst-case performance is reached. Sending multiple such requests in parallel could tie up all available CPU resources and/or PHP-FPM processes, leading to denial of service for legitimate users.
References
- github.com/advisories/GHSA-c2pc-g5qf-rfrf
- github.com/commonmark/commonmark.js/issues/129
- github.com/commonmark/commonmark.js/issues/157
- github.com/commonmark/commonmark.js/issues/172
- github.com/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r
- github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c
- github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh
- github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p
- github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5
- github.com/github/cmark-gfm/security/advisories/GHSA-w4qg-3vf7-m9x5
- github.com/thephpleague/commonmark
- github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf
Detect and mitigate GHSA-c2pc-g5qf-rfrf with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →