Advisory

GO-2021-0051

Also known as: CVE-2020-36565, GHSA-j453-hm5x-c46w

Summary

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

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-04-14 20:04 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/labstack/echo/v4

Go · All systems

Affected

  • introduced 0, fixed 4.1.18-0.20201215153152-4422e3b66b9f (semver)

Fixed versions

4.1.18-0.20201215153152-4422e3b66b9f

Fix

  • Fixed version 4.1.18-0.20201215153152-4422e3b66b9f
    go get github.com/labstack/echo/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences