Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2025-47908
Grafana vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

golang-github-rs-cors

Fixed

sid

golang-github-rs-cors

Fixed

trixie

golang-github-rs-cors

Fixed

Ubuntu

Unknown

devel

golang-github-rs-cors

Unknown

focal (esm-apps)

golang-github-rs-cors

Unknown

jammy

golang-github-rs-cors

Unknown

jammy (esm-apps)

golang-github-rs-cors

Unknown

noble

golang-github-rs-cors

Unknown

noble (esm-apps)

golang-github-rs-cors

Unknown

resolute

golang-github-rs-cors

Unknown

resolute (esm-apps)

golang-github-rs-cors

Unknown

RHEL / CentOS

Affected

OpenShift

openshift4/ose-agent-installer-api-server-rhel8

Affected

RHEL 8

Not Affected

RHEL 9

grafana.src

Affected

RHEL 10

grafana.src

Affected

SourceThis report was generated using AI

Related Grafana vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-15815HIGH8.8
  • Grafana logoGrafana
  • cpe:2.3:a:grafana:grafana
NoYesSep 17, 2026
CVE-2026-92596HIGH8.7
  • Grafana logoGrafana
  • node-nodemailer
NoYesSep 16, 2026
CVE-2026-76154HIGH7.3
  • Grafana logoGrafana
  • cpe:2.3:a:grafana:grafana
NoNoSep 17, 2026
CVE-2026-81872MEDIUM6.3
  • Grafana logoGrafana
  • opentelemetry-collector.src
NoNoSep 16, 2026
CVE-2026-81871MEDIUM6.3
  • Grafana logoGrafana
  • amazon-cloudwatch-agent
NoYesSep 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management