{"id":"CVE-2022-3474","summary":"Bazel leaks user credentials through the remote assets API","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.","aliases":["GHSA-mxr8-q875-rhwq"],"modified":"2026-07-15T01:48:50.993800223Z","published":"2022-10-26T00:00:00Z","database_specific":{"cwe_ids":["CWE-522"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3474.json","cna_assigner":"Google"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bazelbuild/bazel","events":[{"introduced":"41feb616ae18e21fdba3868e4c298b0b83012f10"},{"fixed":"bc087f49584a6a60a5acb3612f6d714e315ab8b5"},{"introduced":"6b33bdb1e22514304c0e35ce8e067f2175685245"},{"fixed":"ad6d3d59ab6706999fe9e604f350bdcbfe501db2"},{"introduced":"eea58d1afb57c32937d323c072f122e4ceeac686"},{"fixed":"df2f77c2a8602d1b729b6802ba2bfcac3dc54402"}],"database_specific":{"source":"AFFECTED_FIELD","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"}]}}],"versions":["4.2.2","5.3.1","5.2.0","5.1.1","5.1.0","5.0.0","4.2.1","4.2.0","4.1.0","4.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-3474.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","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"}]}