CVE-2021-28834
JSON

9.8critical

Remote code execution in Kramdown

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
2.70% (higher than 87% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-52p9-v744-mwjj

Description

Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
kramdown (RubyGems)from 1.16.0 before 2.3.1GitHub Advisory Database
kramdown_project kramdownbefore 2.3.1NVD
fedoraproject fedora32, 33, 34NVD
debian debian_linux10.0NVD

All scores

GitHub9.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated.

NVD (es)

Kramdown versiones anteriores a 2.3.1, no restringe los formateadores Rouge al espacio de nombres de Rouge::Formatters, y por lo tanto, pueden ser instancializadas clases arbitrarias

References

https://github.com/gettalong/kramdown/pull/708exploit, third-party-advisory, web
https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66patch, third-party-advisory, web
https://github.com/gettalong/kramdown/compare/REL_2_3_0...REL_2_3_1patch, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S3BBLUIDCUUR3NEE4NJLOCCAV3ALQ3O6/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SYOLQKFL6IJCQLBXV34Z4TI4O54GESPR/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJCJVYHPY6LNUFM6LYZIAUIYOMVT5QGV/vendor-advisory
https://www.debian.org/security/2021/dsa-4890third-party-advisory, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-28834advisory
https://github.com/stanhu/kramdown/commit/d6a1cbcb2caa2f8a70927f176070d126b2422760web
https://github.com/stanhu/kramdown/commit/ff0218aefcf00cd5a389e17e075d36cd46d011e2web
https://about.gitlab.com/releases/2021/03/17/security-release-gitlab-13-9-4-released/#remote-code-execution-via-unsafe-user-controlled-markdown-rendering-optionsweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NJCJVYHPY6LNUFM6LYZIAUIYOMVT5QGVweb

Sources

SourceRecordLicence
CVE ListCVE-2021-28834 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-52p9-v744-mwjj changed 2024-02-17CC-BY-4.0
NVDCVE-2021-28834 changed 2026-06-17Public domain