Skip to content
Heist/ feed
Back to feed
Medium

Echo static file middleware route protection bypass via encoded dot-dot traversal

Type: advisorySources: Official CVE List

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.

Products
echo
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-118654
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 13:24 UTC · Revision 1

Source evidence

Echo static file middleware route protection bypass via encoded dot-dot traversal

core-cve · Original source

Published 28 Oct 2026, 19:59 UTC

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.

cve:CVE-2026-118654

echo

Fixed versions: Not specified

Complete source record
{
  "id": "4d89e0c534852d367728bd53a1c29bc86187a1d9951097389564c15f2b720c29",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-118654",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Echo static file middleware route protection bypass via encoded dot-dot traversal",
    "summary": "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.",
    "evidence": "cve:CVE-2026-118654",
    "products": [
      {
        "name": {
          "value": "echo",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-118654",
      "aliases": [
        "CVE-2026-118654"
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "scope": "UNCHANGED",
            "version": "3.1",
            "baseScore": 5.9,
            "attackVector": "NETWORK",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N",
            "integrityImpact": "NONE",
            "userInteraction": "NONE",
            "attackComplexity": "HIGH",
            "availabilityImpact": "NONE",
            "privilegesRequired": "NONE",
            "confidentialityImpact": "HIGH"
          }
        }
      ],
      "affected": [
        {
          "vendor": "labstack",
          "product": "echo",
          "versions": [
            {
              "status": "affected",
              "version": "< 4.16.0"
            },
            {
              "status": "affected",
              "version": ">= 5.0.0, < 5.4.0"
            }
          ]
        }
      ],
      "modified": "2026-10-28T19:59:27.911Z",
      "provider": "cve",
      "references": [
        "https://github.com/labstack/echo/security/advisories/GHSA-3pmx-cf9f-34xr",
        "https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1",
        "https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af",
        "https://github.com/labstack/echo/releases/tag/v4.16.0",
        "https://github.com/labstack/echo/releases/tag/v5.4.0"
      ],
      "provider_metadata": {
        "cna": {
          "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
          "shortName": "GitHub_M",
          "dateUpdated": "2026-10-28T19:59:27.911Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-118654",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 484698,
  "published_at": "2026-10-28T19:59:27.911+00:00"
}