Remote Code Execution Affecting kramdown package, versions <2.3.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.11% (85th percentile)

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 Learn

Learn about Remote Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-KRAMDOWN-585939
  • published19 Jul 2020
  • disclosed19 Jul 2020
  • creditUnknown

Introduced: 19 Jul 2020

CVE-2020-14001  (opens in a new tab)
CWE-22  (opens in a new tab)

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

CVSS Scores

version 3.1