elastic / elastic/logstash-devutils

Critical vulnerability CVE-2020-14001 in Kramdown runtime dependency

Open
#92 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Ruby
Stars
17
Forks
27
Avg merge
4d 21h
Merged PRs (30d)
1

Description

logstash-devutils has a [runtime dependency to the outdated Kramdown version 1.14.0](https://github.com/elastic/logstash-devutils/blob/86bc69db54e0d5e26693acb4a768e84c089eb531/logstash-devutils.gemspec#L45). This causes Trivy to report the critical vulnerability CVE-2020-14001 for logstash as a whole:

```
$ trivy --exit-code 1 --severity CRITICAL docker.elastic.co/logstash/logstash:7.9.3
2021-01-06T17:10:53.942Z INFO Need to update DB
2021-01-06T17:10:53.942Z INFO Downloading DB...
19.57 MiB / 19.57 MiB [----------------------------------------------------------------------------------------------------------------------------] 100.00% 6.69 MiB p/s 3s
2021-01-06T17:11:14.850Z WARN No OS package is detected. Make sure you haven't deleted any files that contain information about the installed packages.
2021-01-06T17:11:14.850Z WARN e.g. files under "/lib/apk/db/", "/var/lib/dpkg/" and "/var/lib/rpm"
2021-01-06T17:11:14.850Z INFO Detecting RHEL/CentOS vulnerabilities...
2021-01-06T17:11:14.850Z INFO Detecting ruby vulnerabilities...

docker.elastic.co/logstash/logstash:7.9.3 (centos 7.8.2003)
===========================================================
Total: 0 (CRITICAL: 0)

usr/share/logstash/Gemfile.lock
===============================
Total: 1 (CRITICAL: 1)

+----------+------------------+----------+-------------------+---------------+--------------------------------+
| LIBRARY | VULNERABILITY ID | SEVERITY | INSTALLED VERSION | FIXED VERSION | TITLE |
+----------+------------------+----------+-------------------+---------------+--------------------------------+
| kramdown | CVE-2020-14001 | CRITICAL | 1.14.0 | 2.3.0 | rubygem-kramdown: processing |
| | | | | | template options inside |
| | | | | | documents allows unintended |
| | | | | | read access or embedded... |
+----------+------------------+----------+-------------------+---------------+--------------------------------+

```

Trivy deduces this by reading logstash's `Gemfile.lock` file, which contains the following:

```
logstash-devutils (1.3.6-java)
fivemat
gem_publisher
insist (= 1.0.0)
kramdown (= 1.14.0)
logstash-core-plugin-api (>= 2.0, <= 2.99)
minitar
rake
rspec (~> 3.0)
rspec-wait
stud (>= 0.0.20)
```

An update of kramdown to version 2.3.0 would fix the issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.