CVE-2020-26312: Dotmesh - Path Traversal
- Cve: CVE-2020-26312
- Name: Dotmesh - Path Traversal
- Description: 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. The routine `untarFile` attempts to guard against creating symbolic links that point outside the directory a tar archive is extracted to. However, a malicious tarball first linking `subdir/parent` to `..` (allowed, because `subdir/..` falls within the archive root) and then linking `subdir/parent/escapes` to `..` results in a symbolic link pointing to the tarball’s parent directory, contrary to the routine’s goals. This issue 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. As of time of publication, no patch for this issue is available.
- Impact: Attackers can read arbitrary system files or write to arbitrary locations outside the target folder, leading to information disclosure or arbitrary file modification.
- Remediation: No patch available at this time; consider applying mitigations such as verifying archive contents before extraction or updating to a patched version when available.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure, file_system_write
- Requirement type: user_interaction
- Requirements: Attacker needs to control the archive file
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00441
- Epss percentile: 0.3884
- Assignee: [email protected]
- Published at: 2024-05-14T21:15:10Z
- Age in days: 924
- Modified at: 2026-06-17T03:08:03Z
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-26312
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/dotmesh-io/dotmesh/blob/master/pkg/archiver/tar.go#L255 | nvd | |
| https://securitylab.github.com/advisories/GHSL-2020-254-zipslip-dotmesh/ | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| dotmesh-io:dotmesh | <= 0.8.1 | no | adp_cpes | /v1/products/dotmesh-io/dotmesh |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| dotmesh-io/dotmesh | package | yes | /v1/repositories/dotmesh-io/dotmesh |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts