Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-72816— go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware

Quick assessment

Affected
go-chi chi
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

go-chi chi是go-chi组织开源的一个轻量级、符合 Go 语言习惯且可组合的路由工具。 go-chi chi 5.2.1及之前版本存在授权问题漏洞,该漏洞源于RealIP中间件(middleware/realip.go)中的realIP()函数未验证请求是否来自受信任代理,读取客户端控制的True-Client-IP、X-Real-IP、X-Forwarded-For头信息并覆盖r.RemoteAddr,可能导致攻击者伪造IP地址绕过基于IP的访问控制、规避速率限制和地域限制,并污染审计日志。

CVSS 6.5 · Medium EPSS 0.30% · P22

Affected Version Matrix 2

VendorProduct Version RangeStatus
go-chi chi < 5.3.0 affected
5.3.0 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-72816

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
使用欺骗进行的认证绕过
Source: CVE Program / CVE List V5
Vulnerability Title
go-chi chi 授权问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
go-chi chi是go-chi组织开源的一个轻量级、符合 Go 语言习惯且可组合的路由工具。 go-chi chi 5.2.1及之前版本存在授权问题漏洞,该漏洞源于RealIP中间件(middleware/realip.go)中的realIP()函数未验证请求是否来自受信任代理,读取客户端控制的True-Client-IP、X-Real-IP、X-Forwarded-For头信息并覆盖r.RemoteAddr,可能导致攻击者伪造IP地址绕过基于IP的访问控制、规避速率限制和地域限制,并污染审计日志。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
go-chi chi 0 ~ 5.3.0 -

II. Public POCs for CVE-2026-72816

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-72816

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-72816 (2)

Same Patch Batch · go-chi · 2026-08-14 · 4 CVEs total

CVE-2026-72815 6.9 MEDIUM go-chi chi v5.2.1 IP Spoofing via X-Forwarded-For Header
CVE-2026-72817 6.5 MEDIUM go-chi chi 0.9.0 before 5.3.0 IP Spoofing via X-Forwarded-For
CVE-2025-71405 5.1 MEDIUM go-chi chi before v5.2.2 Open Redirect via RedirectSlashes

IV. Related Vulnerabilities

V. Comments for CVE-2026-72816

No comments yet


Leave a comment