{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "5.0.0"
              },
              {
                "fixed": "5.3.2"
              },
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "4.2.3"
              },
              {
                "introduced": "3.0.0"
              },
              {
                "fixed": "3.7.2"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "41feb616ae18e21fdba3868e4c298b0b83012f10"
            },
            {
              "fixed": "bc087f49584a6a60a5acb3612f6d714e315ab8b5"
            },
            {
              "introduced": "6b33bdb1e22514304c0e35ce8e067f2175685245"
            },
            {
              "fixed": "ad6d3d59ab6706999fe9e604f350bdcbfe501db2"
            },
            {
              "introduced": "eea58d1afb57c32937d323c072f122e4ceeac686"
            },
            {
              "fixed": "df2f77c2a8602d1b729b6802ba2bfcac3dc54402"
            }
          ],
          "repo": "https://github.com/bazelbuild/bazel",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-mxr8-q875-rhwq"
  ],
  "database_specific": {
    "cna_assigner": "Google",
    "cwe_ids": [
      "CWE-522"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3474.json"
  },
  "details": "A bad credential handling in the remote assets API for Bazel versions prior to 5.3.2 and 4.2.3 sends all user-provided credentials instead of only the required ones for the requests. We recommend upgrading to versions later than or equal to 5.3.2 or 4.2.3.",
  "id": "CVE-2022-3474",
  "modified": "2026-07-15T01:48:50.993800223Z",
  "published": "2022-10-26T00:00:00Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3474.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/bazelbuild/bazel/security/advisories/GHSA-mxr8-q875-rhwq"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-3474"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Bazel leaks user credentials through the remote assets API"
}