CVE-2026-72816
CBL Mariner vulnerability analysis and mitigation

Overview

CVE-2026-72816 is an IP spoofing vulnerability in the RealIP middleware (middleware/realip.go) of the go-chi/chi Go HTTP router framework. The flaw affects all versions through 5.2.1 and was disclosed on August 14, 2026, with a fix released in version 5.3.0. It carries a CVSS v3.1 base score of 6.5 (Medium) and a CVSS v4.0 base score of 6.9 (Medium), assigned by VulnCheck (GitHub Advisory, VulnCheck Advisory).

Technical details

The root cause is classified as CWE-290 (Authentication Bypass by Spoofing) and CWE-348 (Use of Less Trusted Source). The vulnerable realIP() function in middleware/realip.go unconditionally reads the True-Client-IP, X-Real-IP, and X-Forwarded-For HTTP headers supplied by the client and overwrites r.RemoteAddr without validating that the request originated from a trusted proxy CIDR. Because these headers are fully client-controlled, any unauthenticated network attacker can inject an arbitrary IP address with a single HTTP request — no special privileges or user interaction required. A proof-of-concept demonstrating the bypass via curl -H "X-Forwarded-For: 127.0.0.1" is included in the GitHub security advisory (GitHub Advisory).

Impact

Successful exploitation allows an unauthenticated remote attacker to bypass IP-based access controls (e.g., reaching admin-only endpoints restricted to localhost or internal ranges), evade rate limiting by rotating spoofed source IPs, circumvent geo-IP restrictions, and inject false source IP addresses into audit logs — undermining forensic integrity. Confidentiality and integrity are partially impacted; availability is not directly affected. The scope of impact depends on how heavily the application relies on r.RemoteAddr for security decisions (GitHub Advisory, VulnCheck Advisory).

Exploitability

CISA's SSVC assessment classifies this vulnerability as having a PoC available and being automatable, indicating low exploitation complexity (NVD). The GitHub security advisory includes a working PoC demonstrating the bypass with a single curl command. No evidence of active in-the-wild exploitation or threat actor attribution has been reported at this time. The EPSS score is approximately 0.219% (13th percentile), suggesting a currently low but non-negligible probability of exploitation in the near term (GitHub Advisory). The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Exploitation steps

  1. Identify target: Locate a web application built with go-chi/chi version ≤ 5.2.1 that uses the middleware.RealIP middleware and enforces IP-based access controls (e.g., admin panels restricted to internal IPs).
  2. Craft spoofed request: Prepare an HTTP request with a forged IP address in one of the trusted headers. The middleware checks headers in priority order: True-Client-IP first, then X-Real-IP, then X-Forwarded-For.
  3. Send the request: Issue the request directly to the target server, injecting the desired spoofed IP:
    curl -H "X-Forwarded-For: 127.0.0.1" http://target.example.com/admin
    or using True-Client-IP for higher priority:
    curl -H "True-Client-IP: 10.0.0.1" http://target.example.com/restricted
  4. Bypass access control: The middleware overwrites r.RemoteAddr with the attacker-supplied IP. Any downstream handler checking r.RemoteAddr for IP-based authorization will see the spoofed address and grant access.
  5. Evade rate limiting / logging: Rotate spoofed IPs across requests to bypass per-IP rate limits, or inject a consistent fake IP to pollute audit logs and obscure the attacker's true origin (GitHub Advisory).

Indicators of compromise

  • Network: HTTP requests to sensitive or admin endpoints originating from unexpected external IPs that contain X-Forwarded-For, X-Real-IP, or True-Client-IP headers not set by a known reverse proxy; rapid requests from many different spoofed source IPs suggesting rate-limit evasion.
  • Logs: Application access logs showing r.RemoteAddr values of internal/loopback addresses (e.g., 127.0.0.1, 10.x.x.x, 192.168.x.x) for requests arriving directly from the internet without passing through a legitimate proxy; discrepancies between TCP-layer source IPs and logged RemoteAddr values.
  • Application Behavior: Successful access to IP-restricted endpoints (e.g., admin routes) from clients that should not have network-level access; rate limiting controls appearing ineffective with high request volumes from varied apparent source IPs (GitHub Advisory).

Mitigation and workarounds

Upgrade go-chi/chi to version 5.3.0 or later, which addresses the vulnerability by validating that forwarded IP headers are only trusted when the request originates from a configured trusted proxy CIDR (GitHub Advisory, VulnCheck Advisory). If immediate patching is not feasible, consider disabling the middleware.RealIP middleware entirely if IP-based access controls are security-critical, or implement a custom middleware that validates the request source against a trusted proxy allowlist before honoring forwarded headers. Additionally, enforce IP-based access controls at the network/infrastructure layer (e.g., firewall rules, reverse proxy ACLs) rather than relying solely on application-layer header inspection.

Community reactions

The vulnerability was reported by researcher rezmoss and published via GitHub's security advisory system on May 22, 2026 (GHSA-rjr7-jggh-pgcp), with the CVE formally assigned and published on August 14, 2026 (GitHub Advisory). VulnCheck acted as the CVE Numbering Authority (CNA) and published a corresponding advisory. CISA-ADP added the reference to the NVD record and assessed the vulnerability as automatable with a PoC available. No significant broader media coverage or notable researcher commentary beyond the advisory itself has been identified at this time.

Additional resources


SourceThis report was generated using AI

Related CBL Mariner vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68454HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-gcp
NoYesAug 13, 2026
CVE-2026-73500HIGH8.7
  • etcd logoetcd
  • kots
NoYesAug 12, 2026
CVE-2026-72817MEDIUM6.9
  • CBL Mariner logoCBL Mariner
  • gh
NoYesAug 14, 2026
CVE-2026-72816MEDIUM6.9
  • CBL Mariner logoCBL Mariner
  • golang-github-go-chi-chi
NoYesAug 14, 2026
CVE-2026-68450LOW1.9
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.14
NoYesAug 12, 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