
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-28834 affects Kramdown versions before 2.3.1, a pure Ruby Markdown parser and converter. The vulnerability was discovered in March 2021 and involves insufficient namespace validation in the Rouge syntax highlighting formatter functionality. The issue allows arbitrary classes to be instantiated due to Kramdown not properly restricting Rouge formatters to the Rouge::Formatters namespace (NVD, Debian Advisory).
The vulnerability has a CVSS v3.1 Base Score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The issue stems from the implementation where Rouge formatters were not properly restricted to the Rouge::Formatters namespace, allowing potential attackers to instantiate arbitrary classes. The vulnerability was introduced in version 1.16 through commit ff0218a, which added support for custom Rouge formatters but failed to enforce the namespace constraint (GitHub PR).
The vulnerability allows remote attackers to execute arbitrary code by exploiting the lack of namespace restrictions in Rouge formatters. This could potentially lead to unauthorized access, data manipulation, and system compromise due to the ability to instantiate arbitrary classes (NVD).
The vulnerability is remotely exploitable without requiring authentication or user interaction. A proof-of-concept exists demonstrating how arbitrary classes can be instantiated using Rouge::Formatters.const_get('CSV') without proper namespace restrictions (GitHub PR).
The vulnerability was patched in Kramdown version 2.3.1 by adding proper namespace restrictions. Users are advised to upgrade to this version or later. Various Linux distributions have also released security updates, including Debian (version 1.17.0-1+deb10u2) and Fedora (versions vary by release) (Debian Advisory, Fedora Update).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."