CVE-2020-14001
JSON

9.8critical

Unintended read access in kramdown gem

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
4.56% (higher than 91% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-mqm2-cgpr-p4m6

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
kramdown (RubyGems)before 2.3.0GitHub Advisory Database
kramdown_project kramdownbefore 2.3.0NVD
debian debian_linux9.0, 10.0NVD
fedoraproject fedora31, 32NVD
canonical ubuntu_linux20.04NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

La gema kramdown versiones anteriores a 2.3.0 para Ruby procesa la opción de plantilla dentro de los documentos de Kramdown por defecto, lo que permite el acceso de lectura no deseada (tal y como template="/etc/passwd") o la ejecución de código Ruby insertado no previsto (tal y como una cadena que comienza con template="string://(%= "). NOTA: kramdown es usado en Jekyll, GitLab Pages, GitHub Pages y Thredded Forum

References

https://github.com/gettalong/kramdownpackage, third-party-advisory
https://kramdown.gettalong.orgvendor-advisory, web
https://rubygems.org/gems/kramdownthird-party-advisory, web
https://kramdown.gettalong.org/news.htmlrelease-notes, vendor-advisory, web
https://github.com/gettalong/kramdown/commit/1b8fd33c3120bfc6e5164b449e2c2fc9c9306fdepatch, third-party-advisory, web
https://github.com/gettalong/kramdown/compare/REL_2_2_1...REL_2_3_0patch, third-party-advisory, web
https://security.netapp.com/advisory/ntap-20200731-0004/third-party-advisory
https://lists.apache.org/thread.html/r96df7899fbb456fe2705882f710a0c8e8614b573fbffd8d12e3f54d2%40%3Cnotifications.fluo.apache.org%3Emailing-list
https://lists.debian.org/debian-lts-announce/2020/08/msg00014.htmlmailing-list, third-party-advisory, web
https://www.debian.org/security/2020/dsa-4743third-party-advisory, vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KBLTGBYU7NKOUOHDKVCU4GFZMGA6BP4L/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ENMMGKHRQIZ3QKGOMBBBGB6B4LB5I7NQ/vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2020-14001 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-mqm2-cgpr-p4m6 changed 2024-02-18CC-BY-4.0
NVDCVE-2020-14001 changed 2026-06-17Public domain