# CVE-2020-26312: GHSL-2020-254: Arbitrary file read and/or write in dotmesh

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.44% (percentile 30, 2026-11-26)
- **CWE:** CWE-787, CWE-125
- **Aliases:** GHSA-hf54-fq2m-p9v6, GO-2024-2849
- **Published:** 2024-05-14T20:22:04.485Z
- **Modified:** 2026-06-17T03:08:03.413Z

## Who should check

- Projects that depend on Go package github.com/dotmesh-io/dotmesh (\<= 0.8.1)
- Anyone running dotmesh-io dotmesh \<= 0.8.1

## 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.

## Affected and fixed versions

- Go `github.com/dotmesh-io/dotmesh`: affected \<= 0.8.1; fixed no fix listed yet (osv)
- dotmesh-io dotmesh: \<= 0.8.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-26312. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-26312.md
Affected: github.com/dotmesh-io/dotmesh <= 0.8.1
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for github.com/dotmesh-io/dotmesh (Go), dotmesh-io dotmesh: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-26312 being exploited?

There is no confirmed exploitation: CVE-2020-26312 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-26312?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2020-26312?

github.com/dotmesh-io/dotmesh \<= 0.8.1.

### Is there a fix for CVE-2020-26312?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2020-26312?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-26312>
- vendor: <https://securitylab.github.com/advisories/GHSL-2020-254-zipslip-dotmesh>
- vendor: <https://github.com/advisories/GHSA-hf54-fq2m-p9v6>
- other: <https://securitylab.github.com/advisories/GHSL-2020-254-zipslip-dotmesh/>
- other: <https://github.com/dotmesh-io/dotmesh/blob/master/pkg/archiver/tar.go#L255>
- other: <https://github.com/dotmesh-io/dotmesh>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-26312>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hf54-fq2m-p9v6> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2849> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-26312> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-26312>
