CVE-2020-26312
vulnerability analysis and mitigation

Overview

Dotmesh is a git-like command-line interface for capturing, organizing and sharing application states. In versions 0.8.1 and prior, the unsafe handling of symbolic links in an unpacking routine may enable attackers to read and/or write to arbitrary locations outside the designated target folder (GitHub Advisory).

Technical details

The vulnerability exists in the untarFile routine which attempts to guard against creating symbolic links that point outside the directory a tar archive is extracted to. However, a malicious tarball can bypass this protection by first linking subdir/parent to .. (allowed, because subdir/.. falls within the archive root) and then linking subdir/parent/escapes to .., resulting in a symbolic link pointing to the tarball's parent directory, contrary to the routine's goals (GitHub Advisory).

Impact

This vulnerability may lead to arbitrary file write (with same permissions as the program running the unpack operation) if the attacker can control the archive file. Additionally, if the attacker has read access to the unpacked files, they may be able to read arbitrary system files the parent process has permissions to read (GitHub Advisory).

Exploitability

The vulnerability can be exploited by providing a specially crafted tar archive that contains malicious symbolic links. The attacker needs to be able to control the contents of the tar archive being processed by the application (GitHub Advisory).

Mitigation and workarounds

As of the time of publication, no patch for this issue was available (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

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