Command Injection Affecting codecov package, versions [,2.0.16)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.11% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-CODECOV-552149
  • published25 Feb 2020
  • disclosed25 Feb 2020
  • creditSam Sanoop of Snyk Security Team

Introduced: 25 Feb 2020

CVE-2019-10800  (opens in a new tab)
CWE-78  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade codecov to version 2.0.16 or higher.

Overview

codecov is a Python report uploader for Codecov.

Affected versions of this package are vulnerable to Command Injection. The vulnerability occurs due to not sanitizing gcov arguments before being being provided to the popen method.

PoC by Snyk

codecov --gcov-args='& echo test > vuln1.txt' --gcov-exec='& echo test > vuln2.txt' --gcov-root='& echo test > vuln3.txt' -t foobar

References

CVSS Scores

version 3.1