Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-28834 EUVD-2021-0603GHSA-52p9-v744-mwjj

Remote code execution in Kramdown

Published Mar 19, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-kramdown 2.3.0-5 —
Debian 13 ruby-kramdown 2.3.0-5 —
Debian 12 ruby-kramdown 2.3.0-5 —
Debian 10 ruby-kramdown 1.17.0-1+deb10u2 DSA-4890-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS ruby-kramdown 1.17.0-4ubuntu0.2 USN-6424-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ruby3.2-rubygem-kramdown 2.4.0-1.8 openSUSE-SU-2024:13161-1
openSUSE Tumbleweed rubygem-kramdown 2.4.0-1.1 openSUSE-SU-2026:10352-1, openSUSE-SU-2025:15119-1, openSUSE-SU-2024:14170-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems kramdown >= 1.16.0, < 2.3.1 2.3.1 GHSA-52p9-v744-mwjj

Advisories 7

References