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

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.35%, higher than 72% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-14T20:04:52.000Z
- Modified: 2026-06-17T03:15:45.120Z
- Also known as: GHSA-j453-hm5x-c46w, GO-2021-0051
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: Go

## Description

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.

(As written by CVE List.)

## Affected

- github.com/labstack/echo/v4: before 4.1.18-0.20201215153152-4422e3b66b9f
- github.com/labstack/echo/v4 (Go): before 4.2.0; before 4.1.18-0.20201215153152-4422e3b66b9f
- labstack echo: before 4.2.0

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/labstack/echo/pull/1718> (exploit, fix, patch, third-party-advisory, web)
- <https://github.com/labstack/echo/commit/4422e3b66b9fd498ed1ae1d0242d660d0ed3faaa> (fix, patch, third-party-advisory, web)
- <https://pkg.go.dev/vuln/GO-2021-0051> (release-notes, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-36565> (advisory)
- <https://github.com/labstack/echo> (package)

## Sources

- CVE List: [CVE-2020-36565](https://www.cve.org/CVERecord?id=CVE-2020-36565), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-j453-hm5x-c46w](https://github.com/advisories/GHSA-j453-hm5x-c46w), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2021-0051](https://pkg.go.dev/vuln/GO-2021-0051), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2020-36565](https://nvd.nist.gov/vuln/detail/CVE-2020-36565), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-36565 · Whole record: https://cve.day/CVE-2020-36565.json · Rebuilt by cve.day 2026-11-25T22:57:58.762Z
