cve.bz

CVE-2021-28834

9.8 criticalExploit referenceEPSS 2.7%Fix available

Critical (9.8). EPSS 2.7% estimated probability of exploitation activity in the next 30 days. Fixed in kramdown 2.3.1.

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

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.7% (unchanged from 2.7% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-28834 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-28834?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-28834?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-28834 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
kramdown_project:kramdownbefore 2.3.1
fedoraproject:fedora32
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-52p9-v744-mwjjRubyGemskramdown>=1.16.0 <2.3.12.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10ruby-kramdown1.17.0-1+deb10u2DSA-4890-1
Debian12, 13, 14ruby-kramdown2.3.0-5DEBIAN-CVE-2021-28834
Ubuntu20.04:LTSruby-kramdown1.17.0-4ubuntu0.2UBUNTU-CVE-2021-28834 USN-6424-1
openSUSETumbleweedruby3.2-rubygem-kramdown2.4.0-1.8openSUSE-SU-2024:13161-1
openSUSETumbleweedrubygem-kramdown2.4.0-1.1openSUSE-SU-2024:12038-1
openSUSETumbleweedrubygem-kramdown2.4.0-1.12openSUSE-SU-2024:14170-1
openSUSETumbleweedrubygem-kramdown2.4.0-1.15openSUSE-SU-2025:15119-1
openSUSETumbleweedrubygem-kramdown2.4.0-1.17openSUSE-SU-2026:10352-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat supported products are not affected by this flaw because they do not ship rubygem-kramdown.

Red Hat's mitigation

Developers using rubygem-kramdown: Do not pass user or external input into custom Rouge formatter selection logic.

All other users/system administrators: There is no known mitigation at this time.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-28834.

References

Check your stackJSON