Bug 2515985 (CVE-2026-72816)

Summary: CVE-2026-72816 github.com/go-chi/chi: go-chi/chi: IP Spoofing via RealIP Middleware allows bypassing access controls
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aazores, abuckta, akoudelk, anthomas, aprice, aruklets, cmah, crizzo, dfreiber, dhanak, dkuc, doconnor, drosa, drow, dsimansk, eaguilar, ebaron, eborisov, ehelms, eshamard, ggainey, gparvin, gtanzill, jburrell, jbuscemi, jcantril, jdobes, jmatsuok, jmitchel, jpasqual, jsamir, jsherril, jtolenti, juwatts, jvasik, kaycoth, kgaikwad, kingland, kshier, lball, lbragsta, mdellweg, mhulan, mnovotny, mstipich, mwringe, ngough, nmoumoul, oezr, orabin, osousa, pcreech, pjindal, rblanco, rchan, rexwhite, rhaigner, rhel-process-autobot, rjohnson, rochandr, rojacob, sausingh, sdawley, smallamp, stcannon, sthirugn, teagle, tmalecek, veshanka, vkumar, watson-tool-maintainers, wenshen, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the go-chi/chi RealIP middleware. This vulnerability allows a remote attacker to perform IP spoofing by supplying arbitrary IP addresses in client-controlled headers. This can lead to bypassing IP-based access controls, evading rate limiting and geo-IP restrictions, and polluting audit logs.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2517962, 2517965, 2517994, 2517995, 2517996, 2517997, 2517998, 2517999, 2518001, 2518002, 2518006, 2518007, 2517961, 2517964, 2518003, 2518004, 2518005, 2518008, 2518009, 2518010    
Bug Blocks:    

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.