Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-15123

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-15123
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:04 UTC · Revision 1

Source evidence

CVE-2020-15123

core-osv · Original source

Published 20 Jul 2020, 18:15 UTC

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.

osv:CVE-2020-15123
Complete source record
{
  "id": "65e48dfeacf705e28f37a3b318c0dba90f06f9faeb518474d8d29b9a2155a649",
  "url": "https://osv.dev/vulnerability/CVE-2020-15123",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-15123",
    "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.",
    "evidence": "osv:CVE-2020-15123",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2020-15123",
      "aliases": [
        "CVE-2020-15123",
        "GHSA-xp63-6vf5-xf3v"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/codecov/codecov-node",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "29dd5b6b039ce03c7bc368855896641441233417"
                },
                {
                  "fixed": "c0711c656686e902af2cd92d6aecc8074de4d83d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:codecov:codecov:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.7.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c0711c656686e902af2cd92d6aecc8074de4d83d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.6.5",
            "v3.6.4",
            "v3.6.3",
            "v3.6.2",
            "v3.6.1",
            "v3.6.0",
            "v3.4.0",
            "v3.3.0",
            "v3.1.0",
            "v3.0.4",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.3.1",
            "v2.2.0",
            "v2.1.0",
            "v2.0.2",
            "v1.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-15123.json"
          }
        }
      ],
      "modified": "2026-10-20T10:52:47.842921872Z",
      "provider": "osv",
      "references": [
        "https://github.com/advisories/GHSA-5q88-cjfq-g2mh",
        "https://github.com/codecov/codecov-node/pull/180",
        "https://github.com/codecov/codecov-node/security/advisories/GHSA-xp63-6vf5-xf3v",
        "https://github.com/codecov/codecov-node/commit/c0711c656686e902af2cd92d6aecc8074de4d83d",
        "https://lgtm.com/query/7714424068617023832"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-15123",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 383831,
  "published_at": "2020-07-20T18:15:12.25+00:00"
}