Skip to content
OpenAdvisories
Medium · 5.3 CVE-2020-36565 EUVD-2022-7655GHSA-j453-hm5x-c46wGO-2021-0051

Directory traversal on Windows in github.com/labstack/echo/v4

Published Dec 7, 2022 · Updated Apr 23, 2025 · Assigned by Go

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 products

VendorProductAffectedFixed
github.com/labstack/echo/v4 github.com/labstack/echo/v4 < 4.1.18-0.20201215153152-4422e3b66b9f 4.1.18-0.20201215153152-4422e3b66b9f

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-labstack-echo No fix yet —
Ubuntu 26.04 LTS golang-github-labstack-echo No fix yet —
Ubuntu 25.10 golang-github-labstack-echo No fix yet —
Ubuntu 24.04 LTS golang-github-labstack-echo No fix yet —
Ubuntu 22.04 LTS golang-github-labstack-echo No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/labstack/echo/v4 < 4.2.0 4.2.0 GHSA-j453-hm5x-c46w
Go github.com/labstack/echo/v4 < 4.1.18-0.20201215153152-4422e3b66b9f 4.1.18-0.20201215153152-4422e3b66b9f GO-2021-0051

References