CVE-2020-36565
MEDIUM 5.3CVSS 3.1Echo vulnerable to directory traversal
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.
- Published
- 7 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-j453-hm5x-c46wGO-2021-0051
- Sources
- NVDJSONOSV GHSA-j453-hm5x-c46wJSONOSV GO-2021-0051JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | labstack | echocpe:2.3:a:labstack:echo:*:*:*:*:*:go:*:* |
< 4.2.0 | 4.2.0 |
| OSV | Go | github.com/labstack/echo/v4 | < 4.2.0 | 4.2.0 |
| OSV | Go | github.com/labstack/echo/v4 | < 4.1.18-0.20201215153152-4422e3b66b9f | 4.1.18-0.20201215153152-4422e3b66b9f |
References
- https://github.com/labstack/echo/commit/4422e3b66b9fd498ed1ae1d0242d660d0ed3faaa · Patch, Third Party Advisory, WEB, FIX
- https://github.com/labstack/echo/pull/1718 · Exploit, Patch, Third Party Advisory, WEB, FIX
- 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
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 7 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 7 Dec 2022)