Vulnerability Name:

CVE-2021-28834 (CCN-198462)

Assigned:2021-03-15
Published:2021-03-15
Updated:2021-04-19
Summary:Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated.
CVSS v3 Severity:9.8 Critical (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
5.3 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
4.6 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:6.8 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
5.0 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-noinfo
Vulnerability Consequences:Bypass Security
References:Source: MITRE
Type: CNA
CVE-2021-28834

Source: XF
Type: UNKNOWN
kramdown-cve202128834-sec-bypass(198462)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/gettalong/kramdown/compare/REL_2_3_0...REL_2_3_1

Source: MISC
Type: Exploit, Third Party Advisory
https://github.com/gettalong/kramdown/pull/708

Source: CCN
Type: GitLab Web site
Patch Kramdown syntax highlighter gem

Source: MISC
Type: Patch, Third Party Advisory
https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66

Source: FEDORA
Type: Third Party Advisory
FEDORA-2021-edc673e864

Source: FEDORA
Type: Third Party Advisory
FEDORA-2021-139a6a2f9d

Source: FEDORA
Type: Third Party Advisory
FEDORA-2021-4c57a892d1

Source: DEBIAN
Type: Third Party Advisory
DSA-4890

Vulnerable Configuration:Configuration 1:
  • cpe:/a:kramdown_project:kramdown:*:*:*:*:*:ruby:*:* (Version < 2.3.1)

  • Configuration 2:
  • cpe:/o:fedoraproject:fedora:32:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:33:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:34:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:debian:debian_linux:10.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:113390
    P
    ruby2.7-rubygem-kramdown-2.3.1-1.3 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:106796
    P
    ruby2.7-rubygem-kramdown-2.3.1-1.3 on GA media (Moderate)
    2021-10-01
    BACK
    kramdown_project kramdown *
    fedoraproject fedora 32
    fedoraproject fedora 33
    fedoraproject fedora 34
    debian debian linux 10.0