CVE
CVE-2021-28834
publishedrubygem-kramdown: allows arbitrary classes to be instantiated
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | buster | ruby-kramdown | Advisory build | 1.17.0-1+deb10u2 | DSA-4890-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-kramdownaarch64 | Advisory build | 2.3.1-1.3 | OPENSUSE-SU-2024:11336-1 |
| Ubuntu | focal | kramdown | Advisory build | 1.17.0-4ubuntu0.2 | USN-6424-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-kramdownppc64le | Advisory build | 2.3.1-1.3 | OPENSUSE-SU-2024:11336-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-kramdowns390x | Advisory build | 2.3.1-1.3 | OPENSUSE-SU-2024:11336-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-kramdownx86_64 | Advisory build | 2.3.1-1.3 | OPENSUSE-SU-2024:11336-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-kramdownaarch64 | Advisory build | 2.3.1-1.3 | OPENSUSE-SU-2024:11336-1 |
Show 24 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-kramdownppc64le | Advisory build | 2.3.1-1.3 | OPENSUSE-SU-2024:11336-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-kramdowns390x | Advisory build | 2.3.1-1.3 | OPENSUSE-SU-2024:11336-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-kramdownx86_64 | Advisory build | 2.3.1-1.3 | OPENSUSE-SU-2024:11336-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-kramdownaarch64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12038-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-kramdownppc64le | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12038-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-kramdowns390x | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12038-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-kramdownx86_64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12038-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-kramdownaarch64 | Advisory build | 2.4.0-1.8 | OPENSUSE-SU-2024:13161-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-kramdownppc64le | Advisory build | 2.4.0-1.8 | OPENSUSE-SU-2024:13161-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-kramdowns390x | Advisory build | 2.4.0-1.8 | OPENSUSE-SU-2024:13161-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-kramdownx86_64 | Advisory build | 2.4.0-1.8 | OPENSUSE-SU-2024:13161-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-kramdownaarch64 | Advisory build | 2.4.0-1.12 | OPENSUSE-SU-2024:14170-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-kramdownppc64le | Advisory build | 2.4.0-1.12 | OPENSUSE-SU-2024:14170-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-kramdowns390x | Advisory build | 2.4.0-1.12 | OPENSUSE-SU-2024:14170-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-kramdownx86_64 | Advisory build | 2.4.0-1.12 | OPENSUSE-SU-2024:14170-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-kramdownaarch64 | Advisory build | 2.4.0-1.15 | OPENSUSE-SU-2025:15119-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-kramdownppc64le | Advisory build | 2.4.0-1.15 | OPENSUSE-SU-2025:15119-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-kramdowns390x | Advisory build | 2.4.0-1.15 | OPENSUSE-SU-2025:15119-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-kramdownx86_64 | Advisory build | 2.4.0-1.15 | OPENSUSE-SU-2025:15119-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-kramdownaarch64 | Advisory build | 2.4.0-1.17 | OPENSUSE-SU-2026:10352-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-kramdownppc64le | Advisory build | 2.4.0-1.17 | OPENSUSE-SU-2026:10352-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-kramdowns390x | Advisory build | 2.4.0-1.17 | OPENSUSE-SU-2026:10352-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-kramdownx86_64 | Advisory build | 2.4.0-1.17 | OPENSUSE-SU-2026:10352-1 |
| Ubuntu | focal | ruby-kramdown | Advisory build | 1.17.0-4ubuntu0.2 | USN-6424-1 |
Description
Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
7- https://github.com/gettalong/kramdown/compare/REL_2_3_0...REL_2_3_1
- https://github.com/gettalong/kramdown/pull/708
- https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66
- FEDORA-2021-edc673e864 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJCJVYHPY6LNUFM6LYZIAUIYOMVT5QGV/
- FEDORA-2021-139a6a2f9d https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S3BBLUIDCUUR3NEE4NJLOCCAV3ALQ3O6/
- FEDORA-2021-4c57a892d1 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SYOLQKFL6IJCQLBXV34Z4TI4O54GESPR/
- DSA-4890 https://www.debian.org/security/2021/dsa-4890
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 667a7e0c1035a5e2cb7ce8a80b2c7b34fbaac08e5f716aa66d64577b3a4723e5
- Ingested
- 23 Sep 2026, 07:53:47 UTC
- Source record
- Official CVE record