CVE-2021-28834
CRITICAL9.8EPSS 2.6%Remote code execution in Kramdown
Published: 3/29/2021Modified: 2/17/2024
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 packages (3)
- Debian/ruby-kramdownfrom 0, < 2.3.0-5
- Debian/ruby-kramdownfrom 0, < 1.17.0-1+deb10u2
- RubyGems/kramdown>= 1.16.0, < 2.3.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (12)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-28834
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-28834
- WEBhttps://about.gitlab.com/releases/2021/03/17/security-release-gitlab-13-9-4-released/#remote-code-execution-via-unsafe-user-controlled-markdown-rendering-options
- WEBhttps://github.com/gettalong/kramdown/compare/REL_2_3_0...REL_2_3_1
- WEBhttps://github.com/gettalong/kramdown/pull/708
- WEBhttps://github.com/stanhu/kramdown/commit/d6a1cbcb2caa2f8a70927f176070d126b2422760
- WEBhttps://github.com/stanhu/kramdown/commit/ff0218aefcf00cd5a389e17e075d36cd46d011e2
- WEBhttps://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/NJCJVYHPY6LNUFM6LYZIAUIYOMVT5QGV
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/S3BBLUIDCUUR3NEE4NJLOCCAV3ALQ3O6
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/SYOLQKFL6IJCQLBXV34Z4TI4O54GESPR
- WEBhttps://www.debian.org/security/2021/dsa-4890