UBUNTU-CVE-2020-14001: Critical severity ubuntu/ruby-kramdown vulnerability

Published Jul 17, 2020
·
Updated

The kramdown gem before 2.3.0 for Ruby 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://<%= ). NOTE: kramdown is used in Jekyll, GitLab Pages, GitHub Pages, and Thredded Forum.

Affected Software

3 affected componentsFixes available
ubuntu/ruby-kramdown<1.10.0-1ubuntu0.1~esm1
1.10.0-1ubuntu0.1~esm1
ubuntu/ruby-kramdown<1.15.0-1ubuntu0.1~esm1
1.15.0-1ubuntu0.1~esm1
ubuntu/ruby-kramdown<1.17.0-4ubuntu0.1
1.17.0-4ubuntu0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/ruby-kramdown to a version that resolves this vulnerability.

    Fixed in 1.10.0-1ubuntu0.1~esm1
  2. Upgrade

    Upgrade ubuntu/ruby-kramdown to a version that resolves this vulnerability.

    Fixed in 1.15.0-1ubuntu0.1~esm1
  3. Upgrade

    Upgrade ubuntu/ruby-kramdown to a version that resolves this vulnerability.

    Fixed in 1.17.0-4ubuntu0.1

Event History

Jul 17, 2020
CVE Published
via OSV·04:15 PM
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are most exposed to this issue?

Deployments that process untrusted Kramdown documents are exposed, because the template option is processed by default. This includes environments using kramdown directly or through Jekyll, GitLab Pages, GitHub Pages, or Thredded Forum.

2

What does an attacker need to exploit it?

An attacker needs a way to supply or influence Kramdown document content that will be processed by a vulnerable kramdown gem. No authentication, user interaction, or special access is indicated by the provided severity vector.

3

What could successful exploitation allow?

A crafted template option can cause unintended file reads, such as reading /etc/passwd. It can also cause embedded Ruby code execution through a template string.

4

Are default settings affected?

Yes. The vulnerable behavior occurs because kramdown processes the template option inside Kramdown documents by default.

5

What version resolves the issue?

kramdown versions before 2.3.0 are affected. Upgrading to version 2.3.0 or later removes the described vulnerable behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203