Skip to content

CVE-2021-28834 Remote code execution in Kramdown

CriticalCVSS 9.8 EPSS 2.7%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

Description

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

Upgrade path

8 packages: 6 fixed.

PackageAffectedFixed inStatus
debian/ruby-kramdown(Debian 12) < 2.3.0-5 2.3.0-5 Fixed
debian/ruby-kramdown(Debian 13) < 2.3.0-5 2.3.0-5 Fixed
debian/ruby-kramdown(Debian 14) < 2.3.0-5 2.3.0-5 Fixed
kramdown project kramdown < 2.3.1 2.3.1 Fixed
rubygems kramdown(RubyGems) = 1.16.0; = 1.16.1; = 1.16.2; = 1.17.0 +8 more 2.3.1 Fixed
ubuntu/ruby-kramdown(Ubuntu 20.04) < 1.17.0-4ubuntu0.2; = 1.17.0-1; = 1.17.0-2; = 1.17.0-4 +1 more 1.17.0-4ubuntu0.2 Fixed
debian linux = 10.0 No fix listed Versions listed
fedoraproject fedora = 32; = 33; = 34 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems kramdown(RubyGems) >= 1.16.0, < 2.3.1 2.3.1
rubygems kramdown(RubyGems) = 1.16.0 No fix listed
rubygems kramdown(RubyGems) = 1.16.1 No fix listed
rubygems kramdown(RubyGems) = 1.16.2 No fix listed
rubygems kramdown(RubyGems) = 1.17.0 No fix listed
rubygems kramdown(RubyGems) = 2.0.0 No fix listed
rubygems kramdown(RubyGems) = 2.0.0.beta1 No fix listed
rubygems kramdown(RubyGems) = 2.0.0.beta2 No fix listed
rubygems kramdown(RubyGems) = 2.1.0 No fix listed
rubygems kramdown(RubyGems) = 2.2.0 No fix listed
rubygems kramdown(RubyGems) = 2.2.1 No fix listed
rubygems kramdown(RubyGems) = 2.3.0 No fix listed
debian/ruby-kramdown(Debian:12) < 2.3.0-5 2.3.0-5
debian/ruby-kramdown(Debian:13) < 2.3.0-5 2.3.0-5
debian/ruby-kramdown(Debian:14) < 2.3.0-5 2.3.0-5
kramdown project kramdown < 2.3.1 2.3.1
fedoraproject fedora = 32 No fix listed
fedoraproject fedora = 33 No fix listed
fedoraproject fedora = 34 No fix listed
debian linux = 10.0 No fix listed
ubuntu/ruby-kramdown(Ubuntu:20.04) < 1.17.0-4ubuntu0.2 1.17.0-4ubuntu0.2
ubuntu/ruby-kramdown(Ubuntu:20.04) = 1.17.0-1 No fix listed
ubuntu/ruby-kramdown(Ubuntu:20.04) = 1.17.0-2 No fix listed
ubuntu/ruby-kramdown(Ubuntu:20.04) = 1.17.0-4 No fix listed
ubuntu/ruby-kramdown(Ubuntu:20.04) = 1.17.0-4ubuntu0.1 No fix listed

References