CVEfocus › CVE database › CVE-2026-118265

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

CVSS 5.3 MediumEPSS 0.2% (higher than 6% of CVEs)Published 2026-10-28Updated 2026-10-29Assigner: GitHub_M

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.

CWE-348

What to do

Fixed builds are available from Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
3Fix pending
5Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-labstack-echoFix pendingUBUNTU-CVE-2026-118265
Ubuntu 26.04golang-github-labstack-echoUnder investigationUBUNTU-CVE-2026-118265
Ubuntu 24.04golang-github-labstack-echoUnder investigationUBUNTU-CVE-2026-118265
Ubuntu 22.04golang-github-labstack-echoUnder investigationUBUNTU-CVE-2026-118265
Ubuntu 22.04golang-github-labstack-echo.v2Under investigationUBUNTU-CVE-2026-118265
Ubuntu 22.04golang-github-labstack-echo.v3Under investigationUBUNTU-CVE-2026-118265
Ubuntu 20.04golang-github-labstack-echo.v2Fix pendingUBUNTU-CVE-2026-118265
Ubuntu 20.04golang-github-labstack-echo.v3Fix pendingUBUNTU-CVE-2026-118265
Go librarygithub.com/labstack/echo/v5Fixed5.4.1GHSA-h53f-rm2w-w7rg

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.