Live threats

All CVEs / Labstack

CVE-2020-36565Labstack Echo

Medium 5.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Echo.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
labstackecho< 4.2.0

Official sources

References

Links published by the sources. Open them with care.