CVE-2020-36561
NixOS vulnerability analysis and mitigation

Overview

Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory in github.com/yi-ge/unzip before version 1.0.3-0.20200308084313-2adbaa4891b9 (GO Vuln DB).

Technical details

The vulnerability exists when extraction code omits validation on the file paths in the archive. When processing archive files, the code concatenates the target directory with the file name from the archive without proper validation, allowing directory traversal through specially crafted filenames containing '../' sequences. This can lead to files being written outside the intended target directory (Snyk Research).

Impact

This vulnerability allows attackers to write or overwrite arbitrary files outside of the intended target directory. This can potentially lead to remote command execution if executable files are overwritten, or cause damage by overwriting configuration files and other sensitive resources. The vulnerability can be exploited on both client machines and servers (Snyk Research).

Mitigation and workarounds

The vulnerability was fixed in version 1.0.3-0.20200308084313-2adbaa4891b9 by adding proper path sanitization. The fix includes checking if the final path after joining with the destination directory starts with the cleaned destination directory path plus a path separator, preventing directory traversal attempts (GitHub 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-14330CRITICAL9.8
  • NixOSNixOS
  • rhel10::firefox-flatpak
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • rhel10::thunderbird-flatpak
NoYesDec 09, 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