CVE-2020-36565
NixOS vulnerability analysis and mitigation

Overview

Due to improper sanitization of user input on Windows, the static file handler in github.com/labstack/echo/v4 (versions before v4.1.18-0.20201215153152-4422e3b66b9f) allows for directory traversal, enabling attackers to read files outside of the target directory that the server has permission to read (NVD, Go Vuln DB).

Technical details

The vulnerability exists in the static file handler's path handling mechanism. The issue stems from using path.Clean() instead of filepath.Clean() for path sanitization. While path.Clean() only handles forward slashes, filepath.Clean() properly handles OS-specific separators, including backslashes on Windows. This allowed attackers to use backslash-based path traversal (..) to access files outside the intended directory on Windows systems (Echo PR).

Impact

An attacker can exploit this vulnerability to read files outside of the target directory that the server has permission to access. This could potentially lead to unauthorized access to sensitive files on Windows systems where the Echo framework is deployed (Go Vuln DB).

Mitigation and workarounds

The issue was fixed by replacing path.Clean() with filepath.Clean() to properly handle OS-specific path separators. Users should upgrade to Echo version v4.1.18-0.20201215153152-4422e3b66b9f or later to receive the security fix (Echo Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management