Red Hat VEX
RHVEX-CVE-2025-47908
github.com/rs/cors: Denial of service via malicious preflight requests in github.com/rs/cors
Details
A flaw was found in github.com/rs/cors. The middleware exhibits excessive heap memory allocation when handling preflight requests containing a lengthy, comma-separated value in the Access-Control-Request-Headers (ACRH) header. This vulnerability allows an attacker to send a specially crafted HTTP request, leading to resource exhaustion and potentially causing an application-level denial of service.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | grafana | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | grafana-selinux | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | grafana | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | grafana-selinux | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2025-47908
- https://bugzilla.redhat.com/show_bug.cgi?id=2386952
- https://www.cve.org/CVERecord?id=CVE-2025-47908
- https://nvd.nist.gov/vuln/detail/CVE-2025-47908
- https://github.com/rs/cors/issues/170
- https://github.com/rs/cors/pull/171
- https://pkg.go.dev/vuln/GO-2024-2883