UBUNTU-CVE-2026-72816

Source
https://ubuntu.com/security/CVE-2026-72816
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-72816.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2026-72816
Upstream
Published
2026-08-14T12:16:00Z
Modified
2026-08-19T11:11:14Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
  • 6.9 (Medium) CVSS_V4 - 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 Calculator
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:22.04:LTS / golang-github-go-chi-chi

Package

Name
golang-github-go-chi-chi
Purl
pkg:deb/ubuntu/golang-github-go-chi-chi?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.5.1-2
5.*
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"

Ubuntu:24.04:LTS / golang-github-go-chi-chi

Package

Name
golang-github-go-chi-chi
Purl
pkg:deb/ubuntu/golang-github-go-chi-chi?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
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"

Ubuntu:26.04:LTS / golang-github-go-chi-chi

Package

Name
golang-github-go-chi-chi
Purl
pkg:deb/ubuntu/golang-github-go-chi-chi?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
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"