UBUNTU-CVE-2022-24724

Source
https://ubuntu.com/security/CVE-2022-24724
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24724.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-24724
Related
Published
2022-03-03T20:15:00Z
Modified
2024-10-15T14:09:48Z
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

Ubuntu:20.04:LTS / cmark-gfm

Package

Name
cmark-gfm
Purl
pkg:deb/ubuntu/cmark-gfm?arch=src?distro=focal

Affected ranges

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

Affected versions

0.*

0.28.3.gfm.20-3
0.29.0.gfm.0-3
0.29.0.gfm.0-4

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / cmark-gfm

Package

Name
cmark-gfm
Purl
pkg:deb/ubuntu/cmark-gfm?arch=src?distro=jammy

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-1+really.0.29.0.gfm.0ubuntu1
0.29.0.gfm.2-2
0.29.0.gfm.3-3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / cmark-gfm

Package

Name
cmark-gfm
Purl
pkg:deb/ubuntu/cmark-gfm?arch=src?distro=oracular

Affected ranges

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

Affected versions

0.*

0.29.0.gfm.6-6build1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / cmark-gfm

Package

Name
cmark-gfm
Purl
pkg:deb/ubuntu/cmark-gfm?arch=src?distro=noble

Affected ranges

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

Affected versions

0.*

0.29.0.gfm.6-6
0.29.0.gfm.6-6build1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}