CVE-2020-26312: Github.com/dotmesh io/dotmesh Dotmesh Arbitrary File Read And/or Vulnerability
HIGHCVE-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.
CVE-2020-26312 at a Glance
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).
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.
Upgrade github.com/dotmesh-io/dotmesh to Latest secure release
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
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?
Which Github.com/dotmesh io/dotmesh versions are affected?
What version fixes CVE-2020-26312?
Is github.com/dotmesh-io/dotmesh affected?
What is the CVSS score of CVE-2020-26312?
What CWE is associated with CVE-2020-26312?
How can I check Go dependencies for CVE-2020-26312?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}