CVE-2026-118265
published medium CVSS 3.1 · 5.3Echo: X-Real-IP extractor trusts the header value instead of the sending peer
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| labstack | — | echo>= 5.0.0, < 5.4.1 | Affected | Not stated | GitHub_M |
Description
Echo is a Go web framework. From 5.0.0 until 5.4.1, Echo v5's ExtractIPFromRealIPHeader validates whether the client-supplied X-Real-IP value belongs to a trusted range instead of validating the direct network peer. A client reaching Echo directly, or through a proxy that preserves the header, can supply a loopback or private address and have Context.RealIP return that spoofed identity. Applications using the extractor for IP allowlists, rate limiting, audit logs, or forwarding headers can consequently trust an attacker-controlled address; the default direct extractor and Echo v4 are unaffected. This issue is fixed in 5.4.1.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| labstack | echo | >= 5.0.0, < 5.4.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-348 CWE-348: Use of Less Trusted Source
References
3Provider assertions
2GitHub_M · cna
Echo: X-Real-IP extractor trusts the header value instead of the sending peer
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b345eed90a4cd31c49bec384e5c407e8cff396ea2348184150e1b77ded9ee5b8
- Ingested
- 29 Oct 2026, 20:57:33 UTC
- Source record
- Official CVE record