trentm/python-markdown2 · Security
markdown2 Regular Expression Denial of Service
- GHSA ID
- GHSA-jr9p-r423-9m2r
- CVE ID
- CVE-2021-26813
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v4
- 8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Description
markdown2 >=1.0.1.18, fixed in 2.4.0, is affected by a regular expression denial of service vulnerability. If an attacker provides a malicious string, it can make markdown2 processing difficult or delayed for an extended period of time.
CWEs
- CWE-1333 · Inefficient Regular Expression Complexity
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-26813 ↗
- https://github.com/trentm/python-markdown2/pull/387 ↗
- https://github.com/trentm/python-markdown2/commit/7b651260739647de5198323e0445b1618750c374 ↗
- https://github.com/advisories/GHSA-jr9p-r423-9m2r ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2021-20.yaml ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/BRP5RN35JZTSJ3JT4722F447ZDK7LZS5 ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/J752422YELXLMLZJPVJVKD2KKHHQRVEH ↗
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JTIX5UXRDJZJ57DO4V33ZNJTNKWGBQLY ↗