Read the docs
TI-2020-18793 Aliases CVE-2020-36565GHSA-j453-hm5x-c46w

Directory traversal on Windows in github.com/labstack/echo/v4

Priority MEDIUM 63CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.

Summary

Due to improper sanitization of user input on Windows, the static file handler allows for directory traversal, allowing an attacker to read files outside of the target directory that the server has permission to read.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01413 72nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed github.com/labstack/echo/v4 (github.com/labstack/echo/v4): 4.1.18-0.20201215153152-4422e3b66b9fgithub.com/labstack/echo/v4 (Go): 4.2.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
github.com/labstack/echo/v4github.com/labstack/echo/v4before 4.1.18-0.20201215153152-4422e3b66b9f4.1.18-0.20201215153152-4422e3b66b9fPatch availableCNA
—github.com/labstack/echo/v4 (Go)before 4.2.04.2.0Patch availableGHSA-j453-hm5x-c46w
  • github.com/labstack/echo/v4 Vendorgithub.com/labstack/echo/v4 Affected before 4.1.18-0.20201215153152-4422e3b66b9f Fixed in 4.1.18-0.20201215153152-4422e3b66b9f Patch available CNA
  • github.com/labstack/echo/v4 (Go) Vendor— Affected before 4.2.0 Fixed in 4.2.0 Patch available GHSA-j453-hm5x-c46w

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:labstack:echo:*:*:*:*:*:go:*:*before 4.2.0Vulnerablelabstack
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*not specified by NVDRunning onMicrosoft
  • cpe:2.3:a:labstack:echo:*:*:*:*:*:go:*:* Versions before 4.2.0 Vulnerable ·labstack
  • cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft

Remediation

  • Fix · CNA github.com/labstack/echo/v4 (github.com/labstack/echo/v4) Fixed in 4.1.18-0.20201215153152-4422e3b66b9f
  • Fix · GHSA-j453-hm5x-c46w github.com/labstack/echo/v4 (Go) Fixed in 4.2.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2020-36565
  2. 2026-10-03 Alias added: GHSA-j453-hm5x-c46w

References

  • TI-2022-18981 Labstack Echo v4.8.0 was discovered to contain an open redirect vulnerability via the… CVSS 3.1CRITICAL 9.6
  • TI-2026-20833 Echo has a Windows path traversal via backslash in middleware.Static default filesystem CVSS 3.1MEDIUM 5.3

Sources