CVE-2023-26485
Last modified
CVE-2023-26485 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. A polynomial time complexity issue in cmark-gfm may lead to unbounded resource exhaustion and subsequent denial of service. EPSS estimates a 1.03% chance of exploitation in the next 30 days.
Description
cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. A polynomial time complexity issue in cmark-gfm may lead to unbounded resource exhaustion and subsequent denial of service. This CVE covers quadratic complexity issues when parsing text which leads with either large numbers of `_` characters. This issue has been addressed in version 0.29.0.gfm.10. Users are advised to upgrade. Users unable to upgrade should validate that their input comes from trusted sources. ### Impact A polynomial time complexity issue in cmark-gfm may lead to unbounded resource exhaustion and subsequent denial of service. ### Proof of concept ``` $ ~/cmark-gfm$ python3 -c 'pad = "_" * 100000; print(pad + "." + pad, end="")' | time ./build/src/cmark-gfm --to plaintext ``` Increasing the number 10000 in the above commands causes the running time to increase quadratically. ### Patches This vulnerability have been patched in 0.29.0.gfm.10. ### Note on cmark and cmark-gfm XXX: TBD [cmark-gfm](https://github.com/github/cmark-gfm) is a fork of [cmark](https://github.com/commonmark/cmark) that adds the GitHub Flavored Markdown extensions. The two codebases have diverged over time, but share a common core. These bugs affect both `cmark` and `cmark-gfm`. ### Credit We would like to thank @gravypod for reporting this vulnerability. ### References https://en.wikipedia.org/wiki/Time_complexity ### For more information If you have any questions or comments about this advisory: * Open an issue in [github/cmark-gfm](https://github.com/github/cmark-gfm)
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Github | Cmark-Gfm | < 0.29.0.gfm.10 |
References
- https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5Exploit, Vendor Advisory
- https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-26485?
How severe is CVE-2023-26485?
How do I fix CVE-2023-26485?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-2648A vulnerability was found in Weaver E-Office 9.5. It has bee…9.8
- CVE-2023-26480XWiki Platform is a generic wiki platform. Starting in versi…5.4
- CVE-2023-26481authentik is an open-source Identity Provider. Due to an ins…6.5
- CVE-2023-26482Nextcloud server is an open source home cloud implementation…8.8
- CVE-2023-26483gosaml2 is a Pure Go implementation of SAML 2.0. SAML Servic…5.3
- CVE-2023-26484KubeVirt is a virtual machine management add-on for Kubernet…8.2
- CVE-2023-26486Vega is a visualization grammar, a declarative format for cr…6.1
- CVE-2023-26487Vega is a visualization grammar, a declarative format for cr…6.1
- CVE-2023-26488OpenZeppelin Contracts is a library for secure smart contrac…6.5
- CVE-2023-26489wasmtime is a fast and secure runtime for WebAssembly. In af…9.9
- CVE-2023-2649A vulnerability was found in Tenda AC23 16.03.07.45_cn. It h…8.8
- CVE-2023-26490mailcow is a dockerized email package, with multiple contain…8.8
Are you affected by CVE-2023-26485?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
