# CVE-2026-118265: Echo: X-Real-IP extractor trusts the header value instead of the sending peer

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-23T20:50:25.000Z
- Modified: 2026-11-05T23:25:48.522Z
- Also known as: GHSA-h53f-rm2w-w7rg, GO-2026-6841
- Weaknesses: CWE-348
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- labstack echo: >= 5.0.0, < 5.4.1
- github.com/labstack/echo/v5 (Go): from 5.0.0 before 5.4.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/labstack/echo/security/advisories/GHSA-h53f-rm2w-w7rg> (advisory, web)
- <https://github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaae>
- <https://github.com/labstack/echo/releases/tag/v5.4.1> (web)
- <https://github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaaec> (fix, web)
- <https://github.com/labstack/echo> (package)

## Sources

- CVE List: [CVE-2026-118265](https://www.cve.org/CVERecord?id=CVE-2026-118265), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-h53f-rm2w-w7rg](https://github.com/advisories/GHSA-h53f-rm2w-w7rg), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-6841](https://pkg.go.dev/vuln/GO-2026-6841), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-118265](https://nvd.nist.gov/vuln/detail/CVE-2026-118265), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2026-118265 · Whole record: https://cve.day/CVE-2026-118265.json · Rebuilt by cve.day 2026-11-25T22:59:47.671Z
