{
  "threat_severity" : "Moderate",
  "public_date" : "2021-03-14T00:00:00Z",
  "bugzilla" : {
    "description" : "rubygem-kramdown: allows arbitrary classes to be instantiated",
    "id" : "1941044",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1941044"
  },
  "cvss3" : {
    "cvss3_base_score" : "9.8",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "status" : "draft"
  },
  "cwe" : "CWE-470",
  "details" : [ "Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated.", "A flaw was found in rubygem-kramdown. Rouge is a syntax highlighter used by kramdown. Restriction of the Rouge formatters to the Rouge::Formatters namespace does not occur when Ruby's const_get() method is called. This can lead to arbitrary classes being instantiated in situations where the application using kramdown, for example, accepts user input to select a Rogue syntax highlighter formatter. The highest threat from this vulnerability when exploited in a vulnerable configuration is to data confidentiality, integrity, and availability." ],
  "statement" : "Red Hat supported products are not affected by this flaw because they do not ship rubygem-kramdown.",
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2021-28834\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-28834" ],
  "name" : "CVE-2021-28834",
  "mitigation" : {
    "value" : "Developers using rubygem-kramdown: Do not pass user or external input into custom Rouge formatter selection logic.\nAll other users/system administrators: There is no known mitigation at this time.",
    "lang" : "en:us"
  },
  "csaw" : false
}