CVE-2020-36565Labstack Echo
Medium 5.3 No auth needed
Follow: this CVE · Labstack · Labstack Echo We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- Dec 7, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Echo.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/labstack/echo/v4 |
< 4.2.0 |
4.2.0 |
go get github.com/labstack/echo/v4@v4.2.0 |
| Go | github.com/labstack/echo/v4 |
< 4.1.18-0.20201215153152-4422e3b66b9f |
4.1.18-0.20201215153152-4422e3b66b9f |
go get github.com/labstack/echo/v4@v4.1.18-0.20201215153152-4422e3b66b9f |
Per OSV / GitHub Advisories (GHSA-j453-hm5x-c46w, GO-2021-0051). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| labstack | echo | < 4.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- pkg.go.dev Release Notes Vendor Advisory