{"id":"CVE-2025-47908","state":"PUBLISHED","title":"Denial of service via malicious preflight requests in github.com/rs/cors","description":"Middleware causes a prohibitive amount of heap allocations when processing malicious preflight requests that include a Access-Control-Request-Headers (ACRH) header whose value contains many commas. This behavior can be abused by attackers to produce undue load on the middleware/server as an attempt to cause a denial of service.","publishedAt":"2025-08-06T20:41:31.311Z","updatedAt":"2025-08-07T13:47:15.232Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Go","products":["github.com/rs/cors github.com/rs/cors"],"affected":[{"vendor":"github.com/rs/cors","product":"github.com/rs/cors","packageName":"github.com/rs/cors","defaultStatus":"unaffected","versions":[{"version":"1.9.0","status":"affected","lessThan":"1.11.0","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Cors.handlePreflight"},{"name":"Cors.areHeadersAllowed"},{"name":"New"},{"name":"splitHeaderValues"},{"name":"AllowAll"},{"name":"Cors.HandlerFunc"},{"name":"Cors.ServeHTTP"},{"name":"Default"}]}],"references":["https://github.com/rs/cors/pull/171","https://github.com/rs/cors/issues/170","https://pkg.go.dev/vuln/GO-2024-2883"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:23.771Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/47xxx/CVE-2025-47908.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-47908","state":"PUBLISHED","datePublished":"2025-08-06T20:41:31.311Z","dateUpdated":"2025-08-07T13:47:15.232Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2025-05-13T23:31:29.597Z"},"containers":{"cna":{"title":"Denial of service via malicious preflight requests in github.com/rs/cors","descriptions":[{"lang":"en","value":"Middleware causes a prohibitive amount of heap allocations when processing malicious preflight requests that include a Access-Control-Request-Headers (ACRH) header whose value contains many commas. This behavior can be abused by attackers to produce undue load on the middleware/server as an attempt to cause a denial of service."}],"affected":[{"vendor":"github.com/rs/cors","product":"github.com/rs/cors","packageName":"github.com/rs/cors","defaultStatus":"unaffected","versions":[{"version":"1.9.0","status":"affected","lessThan":"1.11.0","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Cors.handlePreflight"},{"name":"Cors.areHeadersAllowed"},{"name":"New"},{"name":"splitHeaderValues"},{"name":"AllowAll"},{"name":"Cors.HandlerFunc"},{"name":"Cors.ServeHTTP"},{"name":"Default"}]}],"references":[{"url":"https://github.com/rs/cors/pull/171"},{"url":"https://github.com/rs/cors/issues/170"},{"url":"https://pkg.go.dev/vuln/GO-2024-2883"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-1325: Improperly Controlled Sequential Memory Allocation"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2025-08-06T20:41:31.311Z"},"credits":[{"lang":"en","value":"@jub0bs"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-08-07T13:46:29.844868Z","id":"CVE-2025-47908","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-08-07T13:47:15.232Z"}}]}}}