Skip to main content

go-chi chi CVE-2026-72816

| EUVDEUVD-2026-58631 MEDIUM
Authentication Bypass by Spoofing (CWE-290)
2026-08-14 VulnCheck GHSA-xg24-pmhh-m4m9
6.9
CVSS 4.0 · Vendor: VulnCheck
Share

Severity by source

Vendor (VulnCheck) PRIMARY
6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
6.5 MEDIUM

Network-accessible, no privileges or interaction required; limited confidentiality and integrity impact from access control bypass and log corruption; no availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE
6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Red Hat
6.5 MEDIUM
qualitative

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

3
Patch available
Aug 14, 2026 - 13:01 EUVD
Source Code Evidence Fetched
Aug 14, 2026 - 12:39 vuln.today
Analysis Generated
Aug 14, 2026 - 12:39 vuln.today

DescriptionCVE.org

go-chi/chi through 5.2.1 contains an IP spoofing vulnerability in the RealIP middleware (middleware/realip.go). The realIP() function reads client-controlled headers (True-Client-IP, X-Real-IP, and X-Forwarded-For) and overwrites r.RemoteAddr without verifying that the request originated from a trusted proxy. Attackers can supply arbitrary IP addresses in these headers to bypass IP-based access controls, evade rate limiting and geo-IP restrictions, and pollute audit logs. Fixed in 5.3.0.

AnalysisAI

IP spoofing in go-chi/chi's RealIP middleware through version 5.2.1 enables unauthenticated remote attackers to inject arbitrary values into the True-Client-IP, X-Real-IP, or X-Forwarded-For headers, which the middleware blindly accepts and uses to overwrite r.RemoteAddr without any trusted-proxy verification. Applications that rely on r.RemoteAddr for IP-based access controls, rate limiting, or geo-IP restrictions are directly bypassed, and audit logs are silently corrupted with attacker-chosen addresses. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Send HTTP request with spoofed X-Forwarded-For header
Delivery
RealIP middleware overwrites r.RemoteAddr unconditionally
Exploit
Application evaluates spoofed IP for access control
Execution
IP-based restriction bypassed entirely
Impact
Attacker reaches restricted endpoint or evades rate limit

Vulnerability AssessmentAI

Exploitation The application must explicitly register the middleware.RealIP middleware in its chi router (r.Use(middleware.RealIP) or equivalent per-route usage). … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms unauthenticated, network-accessible exploitation requiring no special attack conditions, yielding a score of 6.9. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario An attacker targeting a chi-based Go application that restricts its /admin route to localhost (r.RemoteAddr == "127.0.0.1") sends a standard HTTP GET request with the header X-Forwarded-For: 127.0.0.1; the RealIP middleware overwrites r.RemoteAddr before the handler executes, causing the IP check to evaluate the attacker-supplied loopback address and return the protected content. A functional POC demonstrating exactly this bypass - a single curl command with no special tooling - is publicly available in GHSA-rjr7-jggh-pgcp.
Remediation Upgrade go-chi/chi v5 to version 5.3.0 or later, which is the only confirmed fix; this release introduces trusted-proxy CIDR validation before the middleware accepts any forwarded IP header. … Detailed patch versions, workarounds, and compensating controls in full report.

Threat intelligence, references, and detailed analysis are available after sign-in.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

Share

CVE-2026-72816 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy