Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733116 (CVE-2020-14001) - <dev-ruby/kramdown-2.3.0: Possible remote code execution (CVE-2020-14001)
Summary: <dev-ruby/kramdown-2.3.0: Possible remote code execution (CVE-2020-14001)
Alias: CVE-2020-14001
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
Whiteboard: ~1 [noglsa cve]
Depends on:
Reported: 2020-07-18 04:06 UTC by John Helmert III
Modified: 2020-09-15 17:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III gentoo-dev Security 2020-07-18 04:06:51 UTC

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.

Patch, included in 2.3.0:

Maintainer(s), please cleanup vulnerable versions.
Comment 1 Hans de Graaff gentoo-dev 2020-07-20 08:29:39 UTC
Cleanup mostly done, but app-text/webgen depends on kramdown-1.x. I have filed a bug for this package:
Comment 2 John Helmert III gentoo-dev Security 2020-08-07 04:21:05 UTC
Looks like we can cleanup now?
Comment 3 Hans de Graaff gentoo-dev 2020-08-07 04:36:15 UTC
dev-ruby/kramdown:0 has now been masked for removal.
Comment 4 John Helmert III gentoo-dev Security 2020-08-07 04:38:01 UTC
(In reply to Hans de Graaff from comment #3)
> dev-ruby/kramdown:0 has now been masked for removal.

Comment 5 Larry the Git Cow gentoo-dev 2020-09-14 17:23:55 UTC
The bug has been referenced in the following commit(s):

commit 3915b68bbc814b693c39d43ea67b7a670943f71b
Author:     Michał Górny <>
AuthorDate: 2020-09-14 17:18:23 +0000
Commit:     Michał Górny <>
CommitDate: 2020-09-14 17:23:44 +0000

    dev-ruby/kramdown: Remove masked slot :0
    Signed-off-by: Michał Górny <>

 dev-ruby/kramdown/Manifest                  |  1 -
 dev-ruby/kramdown/kramdown-1.17.0-r2.ebuild | 51 -----------------------------
 profiles/package.mask                       |  5 ---
 3 files changed, 57 deletions(-)
Comment 6 John Helmert III gentoo-dev Security 2020-09-15 17:10:16 UTC
Tree is clean. All done.