Description
Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Echo's static file handlers can normalize dot segments after route matching and serve a file through a public static route even though the corresponding direct path is protected by route-level middleware. An unauthenticated attacker can read files that an application intended to protect with route-level middleware, when those files are also reachable through a static filesystem mount after path normalization. This vulnerability is the result of an incomplete fix for CVE-2026-55677. This issue is fixed in 4.16.0 and 5.4.0.
Published: 2026-10-28
Score: 5.9 Medium
EPSS: n/a
KEV: No
Impact: Unauthorized file disclosure via path traversal
Action: Apply Patch
AI Analysis

Impact

Echo's static file handlers normalize dot segments after a request has matched a route. Prior to versions 4.16.0 and 5.4.0, this normalization could transform a URI that points to a protected resource into a path that resolves to a file located under a public static directory. The attacker can then read any file that the application had intended to protect with route‑level middleware. The vulnerability is a path‑traversal flaw, CWE‑22, that results in confidential data disclosure but does not give the attacker code execution or privilege escalation.

Affected Systems

The bug affects the Go web framework Echo from the labstack vendor. Any installation of Echo version 4.15.x or earlier, and 5.3.x or earlier, is vulnerable. The issue was fixed in Echo release 4.16.0 and 5.4.0. Systems running earlier releases without applying the patch are at risk.

Risk and Exploitability

The CVSS score of 5.9 indicates a moderate risk. Because the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, the exploitation likelihood cannot be precisely quantified, but the flaw can be triggered with a simple HTTP GET request that contains encoded dot‑dot segments. Authentication is not required and the attacker only needs to know a protected file name and that a public static mount exists. The impact is limited to unauthorized file disclosure and is mitigated by the vendor’s patches.

Generated by OpenCVE AI on October 28, 2026 at 21:40 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Echo to version 4.16.0 or later, or 5.4.0 or later
  • If an upgrade cannot be performed immediately, remove or disable static file middleware for routes that require authentication, or relocate static mounts so they do not overlap protected directories
  • Configure static handlers to reject dot‑segment paths or use a secure file serving library that normalizes paths prior to authorization checks

Generated by OpenCVE AI on October 28, 2026 at 21:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-3pmx-cf9f-34xr Echo static file middleware route protection bypass via encoded dot-dot traversal
History

Wed, 28 Oct 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Labstack
Labstack echo
Vendors & Products Labstack
Labstack echo

Wed, 28 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
Description Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Echo's static file handlers can normalize dot segments after route matching and serve a file through a public static route even though the corresponding direct path is protected by route-level middleware. An unauthenticated attacker can read files that an application intended to protect with route-level middleware, when those files are also reachable through a static filesystem mount after path normalization. This vulnerability is the result of an incomplete fix for CVE-2026-55677. This issue is fixed in 4.16.0 and 5.4.0.
Title Echo static file middleware route protection bypass via encoded dot-dot traversal
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-28T19:59:27.911Z

Reserved: 2026-10-28T17:25:37.561Z

Link: CVE-2026-118654

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-28T20:17:22.550

Modified: 2026-10-28T20:17:22.550

Link: CVE-2026-118654

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-28T22:00:18Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')