Vulnerabilities in pkg:golang/github.com/dotmesh-io/dotmesh

PACKAGE
Advisory Identifier: GHSA-hf54-fq2m-p9v6
Advisory Summary

CVE-2020-26312 is a HIGH (CVSS 8.1) dotmesh arbitrary file read and/or vulnerability (CWE-125: Out-of-bounds Read) affecting Github.com/dotmesh io/dotmesh libraries in the Go ecosystem. The issue involves dotmesh arbitrary file read and/or write. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/dotmesh-io/dotmesh

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/dotmesh-io/dotmesh. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-hf54-fq2m-p9v6 CVE-2020-26312 HIGH dotmesh arbitrary file read and/or write

CVE-2020-26312 at a Glance

CVE Identifier CVE-2020-26312
GHSA Identifier GHSA-hf54-fq2m-p9v6
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Github.com/dotmesh io/dotmesh
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-26312

To remediate this vulnerability, upgrade all affected Github.com/dotmesh io/dotmesh dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/dotmesh-io/dotmesh fixed: Latest secure release
Upgrade github.com/dotmesh-io/dotmesh to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/dotmesh-io/dotmesh

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-26312, inspect your project dependencies for Github.com/dotmesh io/dotmesh:

inspect dependencies for github.com/dotmesh-io/dotmesh

Analyze the terminal output to locate any version of Github.com/dotmesh io/dotmesh in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Github.com/dotmesh io/dotmesh, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2020-26312 Affected Github.com/dotmesh io/dotmesh Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/dotmesh-io/dotmesh
Go
≤ 0.8.1

References

Frequently Asked Questions

What is CVE-2020-26312?
CVE-2020-26312 is a security vulnerability in Github.com/dotmesh io/dotmesh involving dotmesh arbitrary file read and/or write under CWE-125: Out-of-bounds Read.
Which Github.com/dotmesh io/dotmesh versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/dotmesh-io/dotmesh.
What version fixes CVE-2020-26312?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/dotmesh-io/dotmesh affected?
Yes, github.com/dotmesh-io/dotmesh is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2020-26312?
CVE-2020-26312 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2020-26312?
CVE-2020-26312 is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check Go dependencies for CVE-2020-26312?
Run the dependency tree command: 'inspect dependencies for github.com/dotmesh-io/dotmesh'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hf54-fq2m-p9v6",
  "modified" : "2024-05-14T22:32:03Z",
  "published" : "2024-05-14T21:34:44Z",
  "aliases" : [ "CVE-2020-26312" ],
  "summary" : "dotmesh arbitrary file read and/or write",
  "details" : "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.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/dotmesh-io/dotmesh"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.8.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26312"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dotmesh-io/dotmesh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dotmesh-io/dotmesh/blob/master/pkg/archiver/tar.go#L255"
  }, {
    "type" : "ADVISORY",
    "url" : "https://securitylab.github.com/advisories/GHSL-2020-254-zipslip-dotmesh"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T22:32:03Z",
    "nvd_published_at" : "2024-05-14T21:15:10Z"
  }
}