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.
Severity (CVSS)
| Base score | 5.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| Provided by | CNA |
Weaknesses
- CWE-348 — CWE-348: Use of Less Trusted Source
Affected products
| Vendor | Product | Versions |
|---|---|---|
| labstack | echo | >= 5.0.0, < 5.4.1 [affected] |
References
- https://github.com/labstack/echo/security/advisories/GHSA-h53f-rm2w-w7rg (x_refsource_CONFIRM)
- https://github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaae (x_refsource_MISC)
- https://github.com/labstack/echo/releases/tag/v5.4.1 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 29 Oct 2026 07:02 UTC.