# CVE-2020-36565: GO-2021-0051 - Directory traversal on Windows in github.com/labstack/echo/v4

Source: https://junglewise.ai/threats/cve-2020-36565-echo-vulnerable-to-directory-traversal  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

CVE-2020-36565 · Severity: low · CVSS 3.1 · Published 2021-04-14

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

Technologies: [github.com/labstack/echo/v4 (Go)](https://junglewise.ai/threats/technologies/github-com-labstack-echo-v4). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2020-36565 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-36565 being exploited in the wild.

**How severe is CVE-2020-36565?** Low severity, with a CVSS score of 3.1, published 14 April 2021.

**Which products and versions are affected?** github.com/labstack/echo/v4 (Go) SEMVER:introduced=0,fixed=4.1.18-0.20201215153152-4422e3b66b9f, SEMVER:introduced=0,fixed=4.2.0.

**Is there a fix for CVE-2020-36565?** Yes. github.com/labstack/echo/v4 (Go): upgrade to 4.1.18-0.20201215153152-4422e3b66b9f, 4.2.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-36565?** Check whether you run github.com/labstack/echo/v4 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/labstack/echo/v4 (Go): upgrade to 4.1.18-0.20201215153152-4422e3b66b9f, 4.2.0 or later

  ```sh
  go get github.com/labstack/echo/v4@v4.2.0
  ```


## Affected products

- github.com/labstack/echo/v4 (Go) SEMVER:introduced=0,fixed=4.1.18-0.20201215153152-4422e3b66b9f, SEMVER:introduced=0,fixed=4.2.0

## Identifiers

- CVE-2020-36565
- GHSA-j453-hm5x-c46w
- GO-2021-0051

## Related threats

- [Echo web framework arbitrary URI scheme redirect](https://junglewise.ai/threats/cve-2026-118658-echo-is-a-go-web-framework-prior-to-4-15-2-and-5-1-1-context)
- [Echo Go web framework scheme header spoofing and HSTS bypass](https://junglewise.ai/threats/cve-2026-118657-echo-is-a-go-web-framework-prior-to-4-16-0-and-5-4-0-context)
- [Echo open redirect in sanitizeURI with trailing slash redirect](https://junglewise.ai/threats/cve-2026-118656-echo-is-a-go-web-framework-prior-to-4-16-0-and-5-4-0-sanitizeuri)
- [Echo path traversal via double URL encoding in Static middleware](https://junglewise.ai/threats/cve-2026-118655-echo-is-a-go-web-framework-prior-to-4-15-3-and-5-2-0-middleware)
- [Echo path traversal in static file handlers via dot segment normalization](https://junglewise.ai/threats/cve-2026-118654-echo-is-a-go-web-framework-prior-to-4-16-0-and-5-4-0-echo-s)
