Directory traversal on Windows in github.com/labstack/echo/v4 (github.com/labstack/echo/v4 github.com/labstack/echo/v4)
At a glance
- Source
- NVD
- EPSS
- EPSS 1.41 % · percentile 73 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Go
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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 | CISA-ADP |
| 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 · 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) |
Advisories
- GHSA-j453-hm5x-c46w — Echo vulnerable to directory traversal
- GO-2021-0051 — Directory traversal on Windows in github.com/labstack/echo/v4
European references
- ENISA EUVD · EUVD-2022-7655
- GCVE · GCVE-0-2020-36565
Affected configurations (NVD CPE)
cpe:2.3:a:labstack:echo:*:*:*:*:*:go:*:*< 4.2.0
Affected products
| Product | Versions |
|---|---|
| github.com/labstack/echo/v4 · github.com/labstack/echo/v4 | affected 0 < 4.1.18-0.20201215153152-4422e3b66b9f |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |