
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-47908 is a vulnerability discovered in the rs/cors middleware that affects versions from v1.9.0 before v1.11.0. The vulnerability was disclosed on August 6, 2025, and involves excessive heap memory allocation when processing preflight requests containing Access-Control-Request-Headers (ACRH) headers with numerous comma values (Go Project).
The vulnerability occurs when the middleware processes the Access-Control-Request-Headers (ACRH) header of preflight requests in a suboptimal way. Specifically, processing a preflight request with a maliciously long ACRH header causes excessive heap allocations, taking up to 127ms of execution time and 116 MiB of heap allocations for a single 1-MiB malicious preflight request. The vulnerability has been assigned a CVSS v3.1 score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).
The vulnerability can be exploited to cause denial of service by producing undue load on the middleware/server. Since CORS middleware occurs before authentication, attackers don't need to be authenticated to exploit this vulnerability. Local tests demonstrated that concurrent sending of a modest number of malicious preflight requests was sufficient to make a Docker container with limited memory run out of memory and crash (Github Issue).
The vulnerability can be exploited by sending malicious preflight requests that include an Access-Control-Request-Headers (ACRH) header containing many commas. While most Web Application Firewalls (WAFs) would likely drop these malicious preflight requests, servers not behind a WAF remain vulnerable. No public exploits were observed at the time of the initial report (Github Issue).
A fix has been implemented in version v1.11.0 of the rs/cors middleware. The solution involves taking advantage of the Fetch standard's guarantees about preflight requests, including case-insensitive header names, lowercase ACRH values, and lexicographically sorted unique values. The fix implements a sorted-set data structure for storing allowed headers, significantly reducing memory allocation and processing time (Github PR).
Fix availability across major Linux distributions and their releases.
bookworm
golang-github-rs-cors
sid
golang-github-rs-cors
trixie
golang-github-rs-cors
devel
golang-github-rs-cors
focal (esm-apps)
golang-github-rs-cors
jammy
golang-github-rs-cors
jammy (esm-apps)
golang-github-rs-cors
noble
golang-github-rs-cors
noble (esm-apps)
golang-github-rs-cors
resolute
golang-github-rs-cors
resolute (esm-apps)
golang-github-rs-cors
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."