CVE-2020-15123
What it is
In codecov (npm package) before version 3.7.1 the upload method has a command injection vulnerability. Clients of the codecov-node library are unlikely to be aware of this, so they might unwittingly write code that contains a vulnerability. A similar CVE (CVE-2020-7597 for GHSA-5q88-cjfq-g2mh) was issued but the fix was incomplete. It only blocked &, and command injection is still possible using backticks instead to bypass the sanitizer. The attack surface is low in this case. Particularly in the standard use of codecov, where the module is used directly in a build pipeline, not built against as a library in another application that may supply malicious input and perform command injection.
At a glance
- Exploitability
- Can be exploited over the network without logging in, but needs a user to act. High risk of data exposure, data tampering.
- Exploit odds
- 3.8% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 3.8% in the next 30 days (EPSS).
- Severity: 9.3 CRITICAL (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 3.8% · EPSS, next 30 days
- Weakness
- CWE-78 · OS command injection
- Record status
- Modified
Affected
- Codecov < 3.7.1
Attack profile CVSS 3.1 · 9.3
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2020-15123.md and follow it. Check whether this project is affected by CVE-2020-15123. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/advisories/GHSA-5q88-cjfq-g2mh
- https://github.com/codecov/codecov-node/commit/c0711c656686e902af2cd92d6aecc8074de4d83d
- https://github.com/codecov/codecov-node/pull/180
- https://github.com/codecov/codecov-node/security/advisories/GHSA-xp63-6vf5-xf3v
- https://github.com/advisories/GHSA-5q88-cjfq-g2mh
- https://github.com/codecov/codecov-node/commit/c0711c656686e902af2cd92d6aecc8074de4d83d
- https://github.com/codecov/codecov-node/pull/180
- https://github.com/codecov/codecov-node/security/advisories/GHSA-xp63-6vf5-xf3v
References
- https://github.com/advisories/GHSA-5q88-cjfq-g2mh
- https://github.com/codecov/codecov-node/commit/c0711c656686e902af2cd92d6aecc8074de4d83d
- https://github.com/codecov/codecov-node/pull/180
- https://github.com/codecov/codecov-node/security/advisories/GHSA-xp63-6vf5-xf3v
- https://lgtm.com/query/7714424068617023832
- https://github.com/advisories/GHSA-5q88-cjfq-g2mh
- https://github.com/codecov/codecov-node/commit/c0711c656686e902af2cd92d6aecc8074de4d83d
- https://github.com/codecov/codecov-node/pull/180
- https://github.com/codecov/codecov-node/security/advisories/GHSA-xp63-6vf5-xf3v
- https://lgtm.com/query/7714424068617023832