cve.bz

CVE-2026-118265 labstack echo: Use of Less Trusted Source

5.3 mediumEPSS 0.1%Fix available

Medium (5.3) in labstack echo. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/labstack/echo/v5 5.4.1.

On this page
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 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
0.1% (unchanged from 0.1% a week ago) estimated probability of exploitation activity in the next 30 days; 3rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-348 Use of Less Trusted Source
Published
Modified
NVD analysis
Under analysis
Record from
the NVD, synced

Fix and patched versions

  • github.com/labstack/echo/v5 (Go): fixed in 5.4.1

Ask an AI about this CVE

Show the promptExplain CVE-2026-118265 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-118265?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-118265?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-118265 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
labstack echo>= 5.0.0, < 5.4.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h53f-rm2w-w7rgGogithub.com/labstack/echo/v5>=5.0.0 <5.4.15.4.1
GO-2026-6841Gogithub.com/labstack/echo/v5>=5.0.0 <5.4.15.4.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu20.04:LTSgolang-github-labstack-echo.v2, golang-github-labstack-echo.v3no fix listedUBUNTU-CVE-2026-118265
Ubuntu22.04:LTSgolang-github-labstack-echo, golang-github-labstack-echo.v2, golang-github-labstack-echo.v3no fix listedUBUNTU-CVE-2026-118265
Ubuntu24.04:LTS, 26.04:LTS, 26.10golang-github-labstack-echono fix listedUBUNTU-CVE-2026-118265

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated with Moderate severity because, although an unauthenticated remote attacker can spoof client identity, exploitation requires applications to explicitly opt in to the non-default X-Real-IP extractor without upstream proxy sanitization. Under default configurations, services rely on direct connection extraction and remain unaffected. Furthermore, the risk is confined to bypassing IP-based restrictions, evading rate limits, or spoofing audit logs, rather than enabling code execution or compromising host confidentiality.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-118265.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-141 Cache Poisoning Likelihood: High · Severity: High
  • CAPEC-142 DNS Cache Poisoning Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON