- Accueil
- Vulnérabilités
- CVE-2026-118265
CVE-2026-118265
Echo: X-Real-IP extractor trusts the header value instead of the sending peer
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Labstack (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Echo | Versions non précisées | — | CNA (éditeur ou attributeur) |
Go (2 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| github.com/labstack/echo/v5 | de 5.0.0 (inclus) à 5.4.1 (exclu) |
5.4.1 |
GitHub Advisory |
| github.com/labstack/echo/v5 | de 5.0.0 (inclus) à 5.4.1 (exclu) |
5.4.1 |
OSV |
Correctif
Mise à jour — Go/github.com/labstack/echo/v5 5.4.1source officielle
Source : GitHub Advisory
Mise à jour — Go/github.com/labstack/echo/v5 5.4.1source officielle
Source : OSV
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GO-2026-6841 — Echo: X-Real-IP extractor trusts the header value instead of the sending peer in github.com/labstack/echo 5 nov. 2026
- GHSA-h53f-rm2w-w7rg — Echo: X-Real-IP extractor trusts the header value instead of the sending peer 23 oct. 2026
Références
- https://github.com/labstack/echo/security/advisories/GHSA-h53f-rm2w-w7rgx_refsource_CONFIRM
- https://github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaaex_refsource_MISC
- https://github.com/labstack/echo/releases/tag/v5.4.1x_refsource_MISC
- https://github.com/labstack/echo/commit/1855061e572ae9dab727c811d8382f266bfbaaecFIX
- https://github.com/labstack/echoPACKAGE
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N(CVSS 3.1, CNA:GitHub_M)- Faiblesse
- CWE-348 · Autre (CWE-348)