Bug 2515985 (CVE-2026-72816) - CVE-2026-72816 github.com/go-chi/chi: go-chi/chi: IP Spoofing via RealIP Middleware allows bypassing access controls
Summary: CVE-2026-72816 github.com/go-chi/chi: go-chi/chi: IP Spoofing via RealIP Midd...
Keywords:
Status: NEW
Alias: CVE-2026-72816
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2517961 2517962 2517964 2517965 2517994 2517995 2517996 2517997 2517998 2517999 2518001 2518002 2518003 2518004 2518005 2518006 2518007 2518009 2518010 2518008
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-14 11:58 UTC by OSIDB Bzimport
Modified: 2026-08-18 16:12 UTC (History)
73 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-14 11:58:11 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.