{"id":"UBUNTU-CVE-2026-72815","details":"go-chi chi versions \u003e= 5.2.1 and before 5.3.0 contain an IP spoofing vulnerability in the RealIP middleware, which blindly trusts the first (leftmost) value of the X-Forwarded-For HTTP header. A remote attacker can bypass IP-based access control lists and rate-limiting mechanisms, and forge log entries, by supplying a spoofed IP address in the X-Forwarded-For header. The issue is fixed in version 5.3.0.","modified":"2026-08-19T11:11:14Z","published":"2026-08-14T12:16:00Z","upstream":["CVE-2026-72815"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-72815"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-72815"},{"type":"REPORT","url":"https://github.com/go-chi/chi/security/advisories/GHSA-3fxj-6jh8-hvhx"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/go-chi-chi-ip-spoofing-via-x-forwarded-for-header"}],"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-72815.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-72815.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_version":"5.2.3-1","binary_name":"golang-github-go-chi-chi-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-72815.json"}}],"schema_version":"1.9.0","severity":[{"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"}]}