PT-2020-14203 · Codecov · Codecov+1

Razisil

·

Published

2020-02-19

·

Updated

2020-07-27

·

CVE-2020-15123

CVSS v3.1

9.3

Critical

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions codecov versions prior to 3.7.1 codecov-node versions prior to 3.6.5
Description The issue is related to a command injection vulnerability in the upload method of the codecov package. This vulnerability can be exploited using backticks to bypass the sanitizer, allowing for the execution of arbitrary commands. The attack surface is considered low, particularly when the module is used directly in a build pipeline. However, the vulnerability can still be exploited if malicious input is supplied.
Recommendations For codecov versions prior to 3.7.1, update to version 3.7.1 or later to resolve the issue. For codecov-node versions prior to 3.6.5, update to version 3.6.5 or later to resolve the issue. As a temporary workaround, consider restricting the use of the gcov-root argument in the lib/codecov.js file to minimize the risk of exploitation.

Exploit

Fix

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-15123
GHSA-5Q88-CJFQ-G2MH
GHSA-XP63-6VF5-XF3V

Affected Products

Codecov
Codecov-Node