CVE-2026-72816 go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
40 packages: 8 fixed, 32 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux influxdb(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| debian/golang-github-go-chi-chi(Debian 12) | = 5.0.7-1; = 5.1.0-1; = 5.2.0-1; = 5.2.3-1 +3 more | No fix listed | No fix yet |
| debian/golang-github-go-chi-chi(Debian 13) | = 5.2.0-1; = 5.2.3-1; = 5.2.5-1; = 5.3.0-1 +1 more | No fix listed | No fix yet |
| redhat/compliance/openshift-selinuxd-rhel8(Red Hat openshift_security_profiles_operator 1) | All versions | No fix listed | No fix yet |
| redhat/cri-o(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/cri-o(Red Hat openshift 5) | All versions | No fix listed | No fix yet |
| redhat/cryostat/cryostat-storage-rhel9(Red Hat cryostat 4) | All versions | No fix listed | No fix yet |
| redhat/devspaces/udi-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/external-secrets-operator/bitwarden-sdk-server-rhel9(Red Hat external_secrets_operator 1) | All versions | No fix listed | No fix yet |
| redhat/flightctl(Red Hat acm 2) | All versions | No fix listed | No fix yet |
| redhat/flightctl(Red Hat edge_manager 1) | All versions | No fix listed | No fix yet |
| redhat/gatekeeper/gatekeeper-rhel9(Red Hat gatekeeper 3) | All versions | No fix listed | No fix yet |
| redhat/mta/mta-hub-rhel9(Red Hat migration_toolkit_applications 8) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/assisted-image-service-rhel8(Red Hat multicluster_engine) | All versions | No fix listed | No fix yet |
| redhat/multicluster-engine/assisted-image-service-rhel9(Red Hat multicluster_engine) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/opa-openshift-rhel9(Red Hat logging 6) | All versions | No fix listed | No fix yet |
| redhat/openshift-pipelines-client(Red Hat openshift_pipelines 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-serverless-1/kn-plugin-event-sender-rhel9(Red Hat serverless 1) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-telemeter(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/osbuild-composer(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/quay/quay-rhel8(Red Hat quay 3) | All versions | No fix listed | No fix yet |
| redhat/quay/quay-rhel9(Red Hat quay 3) | All versions | No fix listed | No fix yet |
| redhat/rhacm2/observatorium-rhel9(Red Hat acm 2) | All versions | No fix listed | No fix yet |
| redhat/rhacm2/volsync-rhel9(Red Hat acm 2) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-model-registry-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhosdt/tempo-gateway-rhel9(Red Hat openshift_distributed_tracing 3) | All versions | No fix listed | No fix yet |
| redhat/satellite/iop-ingress-rhel9(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| redhat/web-terminal/web-terminal-tooling-rhel9(Red Hat webterminal 1) | All versions | No fix listed | No fix yet |
| redhat/zero-trust-workload-identity-manager/spiffe-spire-agent-rhel9(Red Hat zero_trust_workload_identity_manager 0) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-go-chi-chi(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
… and 10 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| go-chi github.com/go-chi/chi/v5 | < 5.3.0 | 5.3.0 |
| go-chi github.com/go-chi/chi/v5/middleware(Go) | <= 1.5.5 | No fix listed |
| go-chi github.com/go-chi/chi/v5/middleware(Go) | <= 2.1.1 | No fix listed |
| go-chi github.com/go-chi/chi/v5/middleware(Go) | <= 3.3.5 | No fix listed |
| go-chi github.com/go-chi/chi/v5/middleware(Go) | <= 4.1.3 | No fix listed |
| go-chi github.com/go-chi/chi/v5/middleware(Go) | < 5.3.0 | 5.3.0 |
| go-chi github.com/go-chi/chi/v5(Go) | < 5.3.0 | 5.3.0 |
| redhat/spire1-14-main(Red Hat:hummingbird:1) | < 1.14.7-0.4.hum1 | 1.14.7-0.4.hum1 |
| redhat/spire1-15-main(Red Hat:hummingbird:1) | < 1.15.2-0.4.hum1 | 1.15.2-0.4.hum1 |
| redhat/cosign-main(Red Hat:hummingbird:1) | < 3.1.3-0.1.hum1 | 3.1.3-0.1.hum1 |
| redhat/cryostat/cryostat-storage-rhel9(Red Hat:cryostat:4) | All versions | No fix listed |
| redhat/external-secrets-operator/bitwarden-sdk-server-rhel9(Red Hat:external_secrets_operator:1) | All versions | No fix listed |
| redhat/gatekeeper/gatekeeper-rhel9(Red Hat:gatekeeper:3) | All versions | No fix listed |
| redhat/openshift-logging/opa-openshift-rhel9(Red Hat:logging:6) | All versions | No fix listed |
| redhat/mta/mta-hub-rhel9(Red Hat:migration_toolkit_applications:8) | All versions | No fix listed |
| redhat/multicluster-engine/assisted-image-service-rhel8(Red Hat:multicluster_engine) | All versions | No fix listed |
| redhat/multicluster-engine/assisted-image-service-rhel9(Red Hat:multicluster_engine) | All versions | No fix listed |
| redhat/openshift-pipelines-client(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-serverless-1/kn-plugin-event-sender-rhel9(Red Hat:serverless:1) | All versions | No fix listed |
| redhat/flightctl(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rhacm2/observatorium-rhel9(Red Hat:acm:2) | All versions | No fix listed |
| redhat/rhacm2/volsync-rhel9(Red Hat:acm:2) | All versions | No fix listed |
| redhat/flightctl(Red Hat:edge_manager:1) | All versions | No fix listed |
| redhat/osbuild-composer(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/rhoai/odh-model-registry-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
Show 32 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/cri-o(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-telemeter(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/cri-o(Red Hat:openshift:5) | All versions | No fix listed |
| redhat/devspaces/udi-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/rhosdt/tempo-gateway-rhel9(Red Hat:openshift_distributed_tracing:3) | All versions | No fix listed |
| redhat/quay/quay-rhel8(Red Hat:quay:3) | All versions | No fix listed |
| redhat/quay/quay-rhel9(Red Hat:quay:3) | All versions | No fix listed |
| redhat/satellite/iop-ingress-rhel9(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/web-terminal/web-terminal-tooling-rhel9(Red Hat:webterminal:1) | All versions | No fix listed |
| redhat/compliance/openshift-selinuxd-rhel8(Red Hat:openshift_security_profiles_operator:1) | All versions | No fix listed |
| redhat/zero-trust-workload-identity-manager/spiffe-spire-agent-rhel9(Red Hat:zero_trust_workload_identity_manager:0) | All versions | No fix listed |
| debian/golang-github-go-chi-chi(Debian:12) | All versions | No fix listed |
| debian/golang-github-go-chi-chi(Debian:12) | = 5.0.7-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:12) | = 5.1.0-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:12) | = 5.2.0-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:12) | = 5.2.3-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:12) | = 5.2.5-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:12) | = 5.3.0-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:13) | All versions | No fix listed |
| debian/golang-github-go-chi-chi(Debian:13) | = 5.2.0-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:13) | = 5.2.3-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:13) | = 5.2.5-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:13) | = 5.3.0-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:14) | < 5.3.0-1 | 5.3.0-1 |
| debian/golang-github-go-chi-chi(Debian:14) | = 5.2.0-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:14) | = 5.2.3-1 | No fix listed |
| debian/golang-github-go-chi-chi(Debian:14) | = 5.2.5-1 | No fix listed |
| ubuntu/golang-github-go-chi-chi(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/golang-github-go-chi-chi(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/golang-github-go-chi-chi(Ubuntu:26.04) | All versions | No fix listed |
| azure linux gh(Azure Linux:3.0) | < 2.97.0-1 | 2.97.0-1 |
| azure linux influxdb(Azure Linux:3.0) | All versions | No fix listed |
References
- GitHub Security Advisory (GHSA-rjr7-jggh-pgcp) exploit vendor-advisory
- VulnCheck Advisory: go-chi chi before 5.3.0 IP Spoofing via RealIP Middleware third-party-advisory
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases patch vendor-advisory
- github.com product
- github.com
- github.com patch
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:49718 patch vendor-advisory
- RHSA-2026:49732 patch vendor-advisory
- RHSA-2026:54420 patch vendor-advisory
- Red Hat Bugzilla 2515985 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Debian Security Tracker CVE-2026-72816 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-58631 third-party-advisory