CVE-2022-24724

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-24724
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-24724.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-24724
Aliases
Related
Published
2022-03-03T20:15:07Z
Modified
2024-10-12T09:15:04.365527Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

cmark-gfm is GitHub's extended version of the C reference implementation of CommonMark. Prior to versions 0.29.0.gfm.3 and 0.28.3.gfm.21, an integer overflow in cmark-gfm's table row parsing table.c:row_from_string may lead to heap memory corruption when parsing tables who's marker rows contain more than UINT16_MAX columns. The impact of this heap corruption ranges from Information Leak to Arbitrary Code Execution depending on how and where cmark-gfm is used. If cmark-gfm is used for rendering remote user controlled markdown, this vulnerability may lead to Remote Code Execution (RCE) in applications employing affected versions of the cmark-gfm library. This vulnerability has been patched in the following cmark-gfm versions 0.29.0.gfm.3 and 0.28.3.gfm.21. A workaround is available. The vulnerability exists in the table markdown extensions of cmark-gfm. Disabling the table extension will prevent this vulnerability from being triggered.

References

Affected packages

Debian:11 / cmark-gfm

Package

Name
cmark-gfm
Purl
pkg:deb/debian/cmark-gfm?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.29.0.gfm.0-6
0.29.0.gfm.2-1
0.29.0.gfm.2-2
0.29.0.gfm.3-3
0.29.0.gfm.6-2
0.29.0.gfm.6-2.1
0.29.0.gfm.6-3
0.29.0.gfm.6-4
0.29.0.gfm.6-5
0.29.0.gfm.6-6

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / cmark-gfm

Package

Name
cmark-gfm
Purl
pkg:deb/debian/cmark-gfm?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.29.0.gfm.3-3

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / cmark-gfm

Package

Name
cmark-gfm
Purl
pkg:deb/debian/cmark-gfm?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.29.0.gfm.3-3

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / ghostwriter

Package

Name
ghostwriter
Purl
pkg:deb/debian/ghostwriter?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.6+ds-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / ghostwriter

Package

Name
ghostwriter
Purl
pkg:deb/debian/ghostwriter?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.6+ds-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:11 / python-cmarkgfm

Package

Name
python-cmarkgfm
Purl
pkg:deb/debian/python-cmarkgfm?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.4.2-1
0.7.0-1
0.8.0-1
0.8.0-2
0.8.0-3

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / python-cmarkgfm

Package

Name
python-cmarkgfm
Purl
pkg:deb/debian/python-cmarkgfm?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.7.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / python-cmarkgfm

Package

Name
python-cmarkgfm
Purl
pkg:deb/debian/python-cmarkgfm?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.7.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:11 / r-cran-commonmark

Package

Name
r-cran-commonmark
Purl
pkg:deb/debian/r-cran-commonmark?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.7-2
1.8.0-1
1.8.1-1
1.9.0-1
1.9.1-1
1.9.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / r-cran-commonmark

Package

Name
r-cran-commonmark
Purl
pkg:deb/debian/r-cran-commonmark?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.8.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / r-cran-commonmark

Package

Name
r-cran-commonmark
Purl
pkg:deb/debian/r-cran-commonmark?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.8.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:11 / ruby-commonmarker

Package

Name
ruby-commonmarker
Purl
pkg:deb/debian/ruby-commonmarker?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.21.0-1
0.21.0-2
0.21.0-3
0.23.2-1
0.23.2-2
0.23.4-1
0.23.6-1~bpo11+1
0.23.6-1
0.23.9-1
0.23.10-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / ruby-commonmarker

Package

Name
ruby-commonmarker
Purl
pkg:deb/debian/ruby-commonmarker?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.23.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / ruby-commonmarker

Package

Name
ruby-commonmarker
Purl
pkg:deb/debian/ruby-commonmarker?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.23.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/github/cmark-gfm

Affected ranges

Type
GIT
Repo
https://github.com/github/cmark-gfm
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.27.1.gfm.2
0.27.1.gfm.3
0.27.1.gfm.4
0.28.0.gfm.10
0.28.0.gfm.11
0.28.0.gfm.5
0.28.0.gfm.6
0.28.0.gfm.7
0.28.0.gfm.8
0.28.0.gfm.9
0.28.3.gfm.12
0.28.3.gfm.13
0.28.3.gfm.14
0.28.3.gfm.15
0.28.3.gfm.16
0.28.3.gfm.17
0.28.3.gfm.18
0.28.3.gfm.19
0.28.3.gfm.20