CVE catalog

CVE-2022-39209

cmark-gfm vulnerabilities

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
2.15% · Oct 25, 2026

cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. In versions prior to 0.29.0.gfm.6 a polynomial time complexity issue in cmark-gfm's autolink extension may lead to unbounded resource exhaustion and subsequent denial of service. Users may verify the patch by running `python3 -c 'print("![l"* 100000 + "\n")' | ./cmark-gfm -e autolink`, which will resource exhaust on unpatched cmark-gfm but render correctly on patched cmark-gfm. This vulnerability has been patched in 0.29.0.gfm.6. Users are advised to upgrade. Users unable to upgrade should disable the use of the autolink extension.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancmark-gfmsid0.29.0.gfm.13-7.1fixed
Debiancmark-gfmforky0.29.0.gfm.13-7.1fixed
Debiancmark-gfmtrixie0.29.0.gfm.13-4fixed
Debiancmark-gfmbookworm0.29.0.gfm.6-6fixed
Debianghostwritersid26.04.0+ds-1fixed
Debianghostwriterforky26.04.0+ds-1fixed
Debianghostwritertrixie25.04.0+ds-1fixed
Debianghostwriterbookworm2.1.6+ds-2fixed
Debianpython-cmarkgfmsid2025.10.22-2fixed
Debianpython-cmarkgfmforky2025.10.22-2fixed
Debianpython-cmarkgfmtrixie2024.11.20-1fixed
Debianpython-cmarkgfmbookworm0.8.0-3vulnerable
Debianr-cran-commonmarksid2.0.0-3fixed
Debianr-cran-commonmarkforky2.0.0-3fixed
Debianr-cran-commonmarktrixie1.9.5-1fixed
Debianr-cran-commonmarkbookworm1.8.1-1fixed
Debianruby-commonmarkersid2.10.1-1fixed
Debianruby-commonmarkerforky2.10.0-2fixed
Debianruby-commonmarkertrixie0.23.10-1fixed
Debianruby-commonmarkerbookworm0.23.6-1vulnerable
Ubuntupython-cmarkgfmnobleNot reportedvulnerable
Ubunturuby-commonmarkernobleNot reportedvulnerable
Ubuntucmark-gfmnoble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1fixed
Ubuntulibcmark-gfm-devnoble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1fixed
Ubuntulibcmark-gfm-extensions-devnoble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1fixed
Ubuntulibcmark-gfm-extensions0.29.0.gfm.6noble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1fixed
Ubuntulibcmark-gfm0.29.0.gfm.6noble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1fixed
Ubuntucmark-gfmpro0.29.0.gfm.6-6vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.6-6build1vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.6-6ubuntu0.24.04.1~esm1fixed
Ubuntucmark-gfmpro0.29.0.gfm.0-6vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.2-1vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.2-1+really.0.29.0.gfm.0ubuntu1vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.2-2vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.3-3vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.3-3ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancmark-gfmsourcesid0.29.0.gfm.6-2not yet assignedNot reported[1020588]
Debiancmark-gfmsourceforky0.29.0.gfm.6-2not yet assignedNot reported[1020588]
Debiancmark-gfmsourcetrixie0.29.0.gfm.6-2not yet assignedNot reported[1020588]
Debiancmark-gfmsourcebookworm0.29.0.gfm.6-2not yet assignedNot reported[1020588]
Debianghostwritersourcesid2.1.6+ds-1unimportantNot reportedNot reported
Debianghostwritersourceforky2.1.6+ds-1unimportantNot reportedNot reported
Debianghostwritersourcetrixie2.1.6+ds-1unimportantNot reportedNot reported
Debianghostwritersourcebookworm2.1.6+ds-1unimportantNot reportedNot reported
Debianpython-cmarkgfmsourcesid2024.11.20-1not yet assignedNot reported[1034887]
Debianpython-cmarkgfmsourceforky2024.11.20-1not yet assignedNot reported[1034887]
Debianpython-cmarkgfmsourcetrixie2024.11.20-1not yet assignedNot reported[1034887]
Debianpython-cmarkgfmsourcebookworm(unfixed)not yet assignedNot reported[1034887]
Debianr-cran-commonmarksourcesid1.8.1-1not yet assignedNot reportedNot reported
Debianr-cran-commonmarksourceforky1.8.1-1not yet assignedNot reportedNot reported
Debianr-cran-commonmarksourcetrixie1.8.1-1not yet assignedNot reportedNot reported
Debianr-cran-commonmarksourcebookworm1.8.1-1not yet assignedNot reportedNot reported
Debianruby-commonmarkersourcesid0.23.10-1not yet assignedNot reported[1034888]
Debianruby-commonmarkersourceforky0.23.10-1not yet assignedNot reported[1034888]
Debianruby-commonmarkersourcetrixie0.23.10-1not yet assignedNot reported[1034888]
Debianruby-commonmarkersourcebookworm(unfixed)not yet assignedNot reported[1034888]
Ubuntucmark-gfmdebnoble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntulibcmark-gfm-devdebnoble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntulibcmark-gfm-extensions-devdebnoble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntulibcmark-gfm-extensions0.29.0.gfm.6debnoble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntulibcmark-gfm0.29.0.gfm.6debnoble0.29.0.gfm.6-6ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntucmark-gfmdebpro0.29.0.gfm.6-6ubuntu0.24.04.1~esm1Not reportedUSN-7319-1Not reported
Ubuntucmark-gfmdebpro0.29.0.gfm.3-3ubuntu0.1~esm1Not reportedUBUNTU-CVE-2022-39209Not reported

[Debian bug #1020588][Debian bug #1034887][Debian bug #1034888]

Notes

[bookworm] cmark-gfm: Minor issue [bookworm] python-cmarkgfm: Minor issue [bookworm] ruby-commonmarker: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [python-cmarkgfm]

    Details (2)
    • 0.8.0-3 · amd64 · bookworm

      Affected

      usn · python-cmarkgfm · debian · bookworm

    • 0.8.0-3 · arm64 · bookworm

      Affected

      usn · python-cmarkgfm · debian · bookworm

  • Source package: [ruby-commonmarker]

    Details (2)
    • 0.23.6-1+b1 · amd64 · bookworm

      Affected

      usn · ruby-commonmarker · debian · bookworm

    • 0.23.6-1+b1 · arm64 · bookworm

      Affected

      usn · ruby-commonmarker · debian · bookworm

  • [cmark-gfm]Fixed
    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

  • Details (2)
    • 2.1.6+ds-2 · amd64 · bookworm

      Fixed · Fixed: 2.1.6+ds-1

      usn · ghostwriter · debian · bookworm

    • 2.1.6+ds-2 · arm64 · bookworm

      Fixed · Fixed: 2.1.6+ds-1

      usn · ghostwriter · debian · bookworm

  • Source package: [cmark-gfm]

    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

  • Source package: [cmark-gfm]

    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

  • Source package: [cmark-gfm]

    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

  • Source package: [cmark-gfm]

    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.6-2

      usn · cmark-gfm · debian · bookworm

  • Details (2)
    • 1.8.1-1 · amd64 · bookworm

      Fixed · Fixed: 1.8.1-1

      usn · r-cran-commonmark · debian · bookworm

    • 1.8.1-1 · arm64 · bookworm

      Fixed · Fixed: 1.8.1-1

      usn · r-cran-commonmark · debian · bookworm

Observed:

References