{"id":"UBUNTU-CVE-2020-5238","details":"The table extension in GitHub Flavored Markdown before version 0.29.0.gfm.1 takes O(n * n) time to parse certain inputs. An attacker could craft a markdown table which would take an unreasonably long time to process, causing a denial of service. This issue does not affect the upstream cmark project. The issue has been fixed in version 0.29.0.gfm.1.","modified":"2026-05-20T16:04:35.346363560Z","published":"2020-07-01T23:15:00Z","upstream":["CVE-2020-5238"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-5238"},{"type":"REPORT","url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-7gc6-9qr5-hc85"},{"type":"REPORT","url":"https://github.com/github/cmark-gfm/commit/85d895289c5ab67f988ca659493a64abb5fec7b4"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-5238"}],"affected":[{"package":{"name":"cmark-gfm","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/cmark-gfm?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.28.3.gfm.20-3","0.29.0.gfm.0-3","0.29.0.gfm.0-4","0.29.0.gfm.0-4ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.29.0.gfm.0-4ubuntu0.1~esm1","binary_name":"cmark-gfm"},{"binary_name":"libcmark-gfm-extensions0","binary_version":"0.29.0.gfm.0-4ubuntu0.1~esm1"},{"binary_version":"0.29.0.gfm.0-4ubuntu0.1~esm1","binary_name":"libcmark-gfm0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"haskell-cmark-gfm","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/haskell-cmark-gfm?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1.8-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libghc-cmark-gfm-prof","binary_version":"0.1.8-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"python-cmarkgfm","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/python-cmarkgfm?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.2-1build1","0.4.2-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-cmarkgfm","binary_version":"0.4.2-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"r-cran-commonmark","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/r-cran-commonmark?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7-1","binary_name":"r-cran-commonmark"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"ruby-commonmarker","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-commonmarker?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.17.9-1","0.20.2-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.20.2-1build1","binary_name":"ruby-commonmarker"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"haskell-cmark-gfm","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/haskell-cmark-gfm?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.1+ds1-1build1","0.2.1+ds1-2build1","0.2.1+ds1-2build2"],"ecosystem_specific":{"binaries":[{"binary_name":"libghc-cmark-gfm-prof","binary_version":"0.2.1+ds1-2build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"python-cmarkgfm","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-cmarkgfm?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.2-1build3","0.4.2-1build5","0.8.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-cmarkgfm","binary_version":"0.8.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"r-cran-commonmark","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/r-cran-commonmark?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7-2","binary_name":"r-cran-commonmark"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"haskell-cmark-gfm","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/haskell-cmark-gfm?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.5+ds1-1build2","0.2.5+ds1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libghc-cmark-gfm-prof","binary_version":"0.2.5+ds1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"python-cmarkgfm","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-cmarkgfm?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.0-3"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-cmarkgfm","binary_version":"0.8.0-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"r-cran-commonmark","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/r-cran-commonmark?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.0-1","1.9.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"r-cran-commonmark","binary_version":"1.9.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"haskell-cmark-gfm","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/haskell-cmark-gfm?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.6+ds1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.2.6+ds1-1","binary_name":"libghc-cmark-gfm-prof"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"python-cmarkgfm","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/python-cmarkgfm?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.0-3","2024.11.20-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-cmarkgfm","binary_version":"2024.11.20-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"r-cran-commonmark","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/r-cran-commonmark?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"r-cran-commonmark","binary_version":"1.9.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"haskell-cmark-gfm","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/haskell-cmark-gfm?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.6+ds1-1","0.2.6+ds1-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.2.6+ds1-3","binary_name":"libghc-cmark-gfm-prof"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"python-cmarkgfm","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/python-cmarkgfm?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2024.11.20-1","2025.10.22-1","2025.10.22-2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-cmarkgfm","binary_version":"2025.10.22-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}},{"package":{"name":"r-cran-commonmark","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/r-cran-commonmark?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.5-1","2.0.0-1","2.0.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"r-cran-commonmark","binary_version":"2.0.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5238.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}