5.3medium
Directory traversal on Windows in github.com/labstack/echo/v4
- Severity
- 5.3medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.35% (higher than 72% of CVEs)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GHSA-j453-hm5x-c46wGO-2021-0051
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/labstack/echo/v4 | before 4.1.18-0.20201215153152-4422e3b66b9f | CVE List |
| github.com/labstack/echo/v4 (Go) | before 4.2.0, before 4.1.18-0.20201215153152-4422e3b66b9f | GitHub Advisory Database, Go Vulnerability Database |
| labstack echo | before 4.2.0 | NVD |
All scores
| CISA-ADP | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Debido a una sanitización incorrecta de la entrada del usuario en Windows, el controlador de archivos estáticos permite directory traversal, lo que permite a un atacante leer archivos fuera del directorio de destino para los que el servidor tiene permiso de lectura.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36565 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j453-hm5x-c46w changed 2023-11-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2021-0051 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2020-36565 changed 2026-06-17 | Public domain |