{"id":"CVE-2020-15123","aliases":["CVE-2020-15123","GHSA-xp63-6vf5-xf3v"],"related":[],"kind":"vulnerability","state":"published","title":"Command injection in codecov (npm package)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe `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.\n\nA similar CVE was issued: [CVE-2020-7597](https://github.com/advisories/GHSA-5q88-cjfq-g2mh), but the fix was incomplete. It only blocked `&`, and command injection is still possible using backticks instead to bypass the sanitizer.\n\nWe have written a [CodeQL](https://codeql.com) query, which automatically detects this vulnerability. You can see the results of the query on the `codecov-node` project [here](https://lgtm.com/query/7714424068617023832/).\n\n\n### Patches\nThis has been patched in version 3.7.1\n\n### Workarounds\n\nNone, however, 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. \n\n### References\n*  [CVE-2020-7597](https://github.com/advisories/GHSA-5q88-cjfq-g2mh)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Contact us via our [Security Email](mailto:security@codecov.io)","format":"markdown","source":"ghsa"},{"lang":"es","text":"En codecov (paquete npm) versiones anteriores a 3.7.1, el método de carga presenta una vulnerabilidad de inyección de comandos. Es poco probable que los clientes de la biblioteca codecov-node se den cuenta de esto, por lo que pueden escribir involuntariamente código que contiene una vulnerabilidad. Se emitió un CVE similar (CVE-2020-7597 para GHSA-5q88-cjfq-g2mh) pero la corrección fue incompleta. Solo bloqueó &amp;, y la inyección de comandos todavía es posible usando backticks (comilla izquierda) para omitir el saneamiento. La superficie de ataque es baja en este caso. Particularmente en el uso estándar de codecov, donde el módulo es usado directamente en una tubería de compilación, no como una biblioteca en otra aplicación que puede suministrar entradas maliciosas y llevar a cabo una inyección de comandos","source":"nvd"}],"published":"2020-07-20T17:20:16.000Z","modified":"2026-06-17T02:56:05.750Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 3.7.1","status":"affected"}],"vendor":"codecov","product":"codecov-node","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.7.1"}],"ecosystem":"npm","package":"codecov","purl":"pkg:npm/codecov","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.7.1"}],"vendor":"codecov","product":"codecov","cpe":"cpe:2.3:a:codecov:codecov:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/codecov/codecov-node/security/advisories/GHSA-xp63-6vf5-xf3v","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/codecov/codecov-node/pull/180","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/codecov/codecov-node/commit/c0711c656686e902af2cd92d6aecc8074de4d83d","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-5q88-cjfq-g2mh","tags":["advisory","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lgtm.com/query/7714424068617023832","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15123","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15123","url":"https://www.cve.org/CVERecord?id=CVE-2020-15123","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:21.863Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xp63-6vf5-xf3v","url":"https://github.com/advisories/GHSA-xp63-6vf5-xf3v","licence":"CC-BY-4.0","modified":"2026-02-04T02:59:45.581Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15123","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15123","licence":"Public domain","modified":"2026-06-17T02:56:05.750Z"}],"updatedAt":"2026-11-25T22:57:53.569Z","epss":{"score":0.03805,"percentile":0.90292,"date":"2026-12-01T12:00:22.000Z"}}