Remote Code Execution Affecting kramdown package, versions <2.3.0


0.0
high

Snyk CVSS

    Attack Complexity Low
    Privileges Required High
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 1.21% (86th percentile)
Expand this section
NVD
9.8 critical
Expand this section
SUSE
7.3 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-KRAMDOWN-585939
  • published 19 Jul 2020
  • disclosed 19 Jul 2020
  • credit Unknown

How to fix?

Upgrade kramdown to version 2.3.0 or higher.

Overview

kramdown is a Yet-another-markdown-parser but fast, pure Ruby, using a strict syntax definition and supporting several common extensions.

Affected versions of this package are vulnerable to Remote Code Execution. The gem processes the template option inside Kramdown documents by default, which allows unintended read access (such as template="/etc/passwd") or unintended embedded Ruby code execution (such as a string that begins with template="string://<%= `).

References