{"id":"UBUNTU-CVE-2026-72816","details":"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.","modified":"2026-08-19T11:11:14Z","published":"2026-08-14T12:16:00Z","upstream":["CVE-2026-72816"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-72816"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-72816"},{"type":"REPORT","url":"https://github.com/go-chi/chi/security/advisories/GHSA-rjr7-jggh-pgcp"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/go-chi-chi-before-ip-spoofing-via-realip-middleware"}],"affected":[{"package":{"name":"golang-github-go-chi-chi","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-go-chi-chi?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.1-2","5.0.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-go-chi-chi-dev","binary_version":"5.0.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-72816.json"}},{"package":{"name":"golang-github-go-chi-chi","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-go-chi-chi?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-go-chi-chi-dev","binary_version":"5.0.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-72816.json"}},{"package":{"name":"golang-github-go-chi-chi","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-go-chi-chi?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.2.0-1","5.2.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-go-chi-chi-dev","binary_version":"5.2.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-72816.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}