{"id":"CVE-2024-45336","state":"PUBLISHED","title":"Sensitive headers incorrectly sent after cross-domain redirect in net/http","description":"The HTTP client drops sensitive headers after following a cross-domain redirect. For example, a request to a.com/ containing an Authorization header which is redirected to b.com/ will not send that header to b.com. In the event that the client received a subsequent same-domain redirect, however, the sensitive headers would be restored. For example, a chain of redirects from a.com/, to b.com/1, and finally to b.com/2 would incorrectly send the Authorization header to b.com/2.","publishedAt":"2025-01-28T01:03:24.869Z","updatedAt":"2025-09-18T18:41:11.116Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CISA-ADP"},"assigner":"Go","products":["Go standard library net/http"],"affected":[{"vendor":"Go standard library","product":"net/http","packageName":"net/http","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.22.11","versionType":"semver"},{"version":"1.23.0-0","status":"affected","lessThan":"1.23.5","versionType":"semver"},{"version":"1.24.0-0","status":"affected","lessThan":"1.24.0-rc.2","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Client.do"},{"name":"Client.makeHeadersCopier"},{"name":"shouldCopyHeaderOnRedirect"},{"name":"Client.Do"},{"name":"Client.Get"},{"name":"Client.Head"},{"name":"Client.Post"},{"name":"Client.PostForm"},{"name":"Get"},{"name":"Head"},{"name":"Post"},{"name":"PostForm"}]}],"references":["https://go.dev/cl/643100","https://go.dev/issue/70530","https://groups.google.com/g/golang-dev/c/CAWXhan3Jww/m/bk9LAa-lCgAJ","https://groups.google.com/g/golang-dev/c/bG8cv1muIBM/m/G461hA6lCgAJ","https://pkg.go.dev/vuln/GO-2025-3420","https://security.netapp.com/advisory/ntap-20250221-0003/"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/45xxx/CVE-2024-45336.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-45336","state":"PUBLISHED","datePublished":"2025-01-28T01:03:24.869Z","dateUpdated":"2025-09-18T18:41:11.116Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2024-08-27T19:41:58.555Z"},"containers":{"cna":{"title":"Sensitive headers incorrectly sent after cross-domain redirect in net/http","descriptions":[{"lang":"en","value":"The HTTP client drops sensitive headers after following a cross-domain redirect. For example, a request to a.com/ containing an Authorization header which is redirected to b.com/ will not send that header to b.com. In the event that the client received a subsequent same-domain redirect, however, the sensitive headers would be restored. For example, a chain of redirects from a.com/, to b.com/1, and finally to b.com/2 would incorrectly send the Authorization header to b.com/2."}],"affected":[{"vendor":"Go standard library","product":"net/http","packageName":"net/http","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.22.11","versionType":"semver"},{"version":"1.23.0-0","status":"affected","lessThan":"1.23.5","versionType":"semver"},{"version":"1.24.0-0","status":"affected","lessThan":"1.24.0-rc.2","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Client.do"},{"name":"Client.makeHeadersCopier"},{"name":"shouldCopyHeaderOnRedirect"},{"name":"Client.Do"},{"name":"Client.Get"},{"name":"Client.Head"},{"name":"Client.Post"},{"name":"Client.PostForm"},{"name":"Get"},{"name":"Head"},{"name":"Post"},{"name":"PostForm"}]}],"references":[{"url":"https://go.dev/cl/643100"},{"url":"https://go.dev/issue/70530"},{"url":"https://groups.google.com/g/golang-dev/c/CAWXhan3Jww/m/bk9LAa-lCgAJ"},{"url":"https://groups.google.com/g/golang-dev/c/bG8cv1muIBM/m/G461hA6lCgAJ"},{"url":"https://pkg.go.dev/vuln/GO-2025-3420"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-201: Insertion of Sensitive Information Into Sent Data"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2025-09-18T18:41:11.116Z"},"credits":[{"lang":"en","value":"Kyle Seely"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"CHANGED","version":"3.1","baseScore":6.1,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","integrityImpact":"LOW","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-01-28T14:56:59.058895Z","id":"CVE-2024-45336","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-28T15:16:38.044Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.netapp.com/advisory/ntap-20250221-0003/"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-02-21T18:03:31.299Z"}}]}}}