Directory Traversal Vulnerability in golang-github-labstack-echo Package

golang-github-labstack-echo Updated 02 Oct 2025

Summary

07/12/2022
N/A
No i
Medium
5.3

UBUNTU-CVE-2020-36565: 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. Affects golang-github-labstack-echo versions 4.2.1-2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The golang-github-labstack-echo package is a high-performance, extensible web framework for Go (Golang). It is designed to facilitate the development of web applications and APIs with a focus on speed and simplicity. However, a vulnerability has been identified that allows for directory traversal due to improper sanitization of user input on Windows systems.

Vulnerability Detail

The vulnerability, identified as CVE-2020-36565, arises from the static file handler in the golang-github-labstack-echo package, which fails to properly sanitize user input. This flaw enables an attacker to exploit directory traversal techniques, potentially allowing unauthorized access to files outside the intended directory. The ramifications of this vulnerability could include exposure of sensitive files and data, leading to further attacks or data breaches.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, developers can implement additional input validation and sanitization in their applications to mitigate the risk of directory traversal. This can be done by restricting file access to specific directories and validating user input before processing it.

Conclusion

The directory traversal vulnerability in the golang-github-labstack-echo package poses significant risks to applications using this framework. It is crucial for developers to update to the latest patched version and implement best practices for input validation to safeguard their applications.

See every vulnerability recorded for golang-github-labstack-echo →

Share this vulnerability

FAQ

CVE-2020-36565 is a vulnerability in the golang-github-labstack-echo package that allows for directory traversal due to improper input sanitization.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.

The risks include unauthorized access to sensitive files and data, which could lead to data breaches or further attacks on the system.

Yes, a patched version of the golang-github-labstack-echo package is available. Users should update to version 4.12.0-1 or later.

If an immediate update is not possible, implement additional input validation and restrict file access to mitigate the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for golang-github-labstack-echo.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback