cve.bz

CVE-2026-72816 go-chi chi: Authentication Bypass by Spoofing

6.9 mediumEPSS 0.3%Fix available

Medium (6.9) in go-chi chi. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/go-chi/chi/v5/middleware 5.3.0.

On this page
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.

Severity

CVSS 4.0

6.9 medium
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

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 23rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-08-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-290 Authentication Bypass by Spoofing
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • github.com/go-chi/chi/v5/middleware (Go): fixed in 5.3.0
  • github.com/go-chi/chi/v5 (Go): fixed in 5.3.0
  • Debian, Red Hat, openSUSE, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-72816 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-72816?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-72816?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-72816 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
go-chi chibefore 5.3.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rjr7-jggh-pgcpGogithub.com/go-chi/chi/middleware<=1.5.5no fix published
GHSA-rjr7-jggh-pgcpGogithub.com/go-chi/chi/v2/middleware<=2.1.1no fix published
GHSA-rjr7-jggh-pgcpGogithub.com/go-chi/chi/v3/middleware<=3.3.5no fix published
GHSA-rjr7-jggh-pgcpGogithub.com/go-chi/chi/v4/middleware<=4.1.3no fix published
GHSA-rjr7-jggh-pgcpGogithub.com/go-chi/chi/v5/middleware<5.3.05.3.0
GO-2026-5777Gogithub.com/go-chi/chi/v5<5.3.05.3.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-github-go-chi-chino fix listedDEBIAN-CVE-2026-72816
Debian14golang-github-go-chi-chi5.3.0-1DEBIAN-CVE-2026-72816
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTSgolang-github-go-chi-chino fix listedUBUNTU-CVE-2026-72816
Red Hathummingbird:1cosign0:3.1.3-0.1.hum1RHSA-2026:54420
Red Hathummingbird:1spire1.14, spire1.14-agent, spire1.14-server and 1 more0:1.14.7-0.4.hum1RHSA-2026:49718
Red Hathummingbird:1spire1.15, spire1.15-agent, spire1.15-server and 1 more0:1.15.2-0.4.hum1RHSA-2026:49732
openSUSELeap 16.0cloudflared2026.8.2-bp160.1.1openSUSE-SU-2026:21670-1
openSUSELeap 16.0hauler2.1.0-bp160.1.1openSUSE-SU-2026:21793-1
openSUSELeap 16.0trivy0.74.0-160000.1.1openSUSE-SU-2026:21645-1
openSUSELeap 16.0v2ray-core5.53.0-bp160.1.1openSUSE-SU-2026:21653-1
openSUSELeap 16.0warewulf44.7.1-bp160.1.1openSUSE-SU-2026:21918-1
Azure Linux3gh2.97.0-1AZL-96635
Azure Linux3influxdbno fix listedAZL-96689

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

An IP spoofing flaw exists in go-chi/chi's RealIP middleware (middleware/realip.go). The realIP() function parses untrusted HTTP headers (True-Client-IP, X-Real-IP, X-Forwarded-For) and overwrites r.RemoteAddr without validating upstream proxy identity. Remote unauthenticated attackers can supply arbitrary IP values in these headers to bypass IP-restricted endpoints, subvert rate-limiting controls, or poison application audit logs, posing a Low impact to confidentiality and integrity.

Red Hat's mitigation

Do not use the `chi/middleware.RealIP` middleware when receiving traffic directly from untrusted networks or unverified proxies. Instead, strip or sanitize client-supplied forwarding headers at an upstream edge proxy or reverse proxy (such as NGINX or HAProxy) before requests reach the application.

ProductPackageStateAdvisory
Red Hat Hardened Imagesspire1-14-main-1.14.7-0.4.hum1Fixed 2026-08-03RHSA-2026:49718
Red Hat Hardened Imagesspire1-15-main-1.15.2-0.4.hum1Fixed 2026-08-03RHSA-2026:49732
Red Hat Hardened Imagescosign-main-3.1.3-0.1.hum1Fixed 2026-08-12RHSA-2026:54420
Cryostat 4cryostat/cryostat-storage-rhel9Fix deferred
External Secrets Operator for Red Hat OpenShiftexternal-secrets-operator/bitwarden-sdk-server-rhel9Fix deferred
Gatekeeper 3gatekeeper/gatekeeper-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/opa-openshift-rhel9Fix deferred
Migration Toolkit for Applications 8mta/mta-hub-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-image-service-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/assisted-image-service-rhel9Fix deferred
OpenShift Pipelinesopenshift-pipelines-clientFix deferred
OpenShift Pipelinesopenshift-pipelines/pipelines-opc-rhel9Not affected
OpenShift Serverlessopenshift-serverless-1/kn-plugin-event-sender-rhel9Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2flightctlFix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/observatorium-rhel9Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-rhel9Fix deferred
Red Hat Advanced Cluster Security 4advanced-cluster-security/rhacs-main-rhel8Not affected
Red Hat Advanced Cluster Security 4advanced-cluster-security/rhacs-main-rhel9Not affected
Red Hat Edge Manager 1flightctlFix deferred
Red Hat Enterprise Linux 8osbuild-composerFix deferred
17 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-72816.

Attack patterns (CAPEC)

  • CAPEC-21 Exploitation of Trusted Identifiers Likelihood: High · Severity: High
  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-60 Reusing Session IDs (aka Session Replay) Likelihood: High · Severity: High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-461 Web Services API Signature Forgery Leveraging Hash Function Extension Weakness Severity: High
  • CAPEC-473 Signature Spoof
  • CAPEC-476 Signature Spoofing by Misrepresentation Likelihood: Low · Severity: High
  • CAPEC-667 Bluetooth Impersonation AttackS (BIAS) Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON