{"answers":{"affected":"3 open source packages ship an affected version, including github.com/dotmesh-io/dotmesh.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-26312 exists.","fix":"No fix has been published for CVE-2020-26312 yet. Limit exposure of the affected software until one is available.","what":"CVE-2020-26312 is a high-severity path traversal vulnerability in dotmesh-io dotmesh, published on 14 May 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-26312 and fix it if it is affected.\n\nWhat it is: CVE-2020-26312 is a high-severity path traversal vulnerability in dotmesh-io dotmesh, published on 14 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-26312 exists.\n\nAffected packages and fixed versions:\n- github.com/dotmesh-io/dotmesh (Go): affected all versions; no fix listed\n- github.com/dotmesh-io/dotmesh (Go): affected all versions up to 0.8.1; no fix listed\n- github.com/dotmesh-io/dotmesh (Go): affected all versions up to 0.8.1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-26312/ (Markdown: https://insights.sbomify.com/CVE-2020-26312/index.md)","id":"CVE-2020-26312","markdown":"https://insights.sbomify.com/CVE-2020-26312/index.md","name":"CVE-2020-26312","record":{"aliases":["GHSA-hf54-fq2m-p9v6","GO-2024-2849"],"analysis":{"component_type":"developer_tool","fix_type":"no_fix_stated","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"dotmesh CLI tool","requires_auth":"low_privilege","summary":"Attackers can read or write arbitrary files outside the target directory via malicious tarballs exploiting symbolic link handling in dotmesh.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-125","name":"Out-of-bounds Read"}],"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 \nenable attackers to read and/or write to arbitrary locations outside the\n 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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"GHSL-2020-254: Arbitrary file read and/or write in dotmesh","id":"CVE-2020-26312","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2020"},"n_packages":3,"n_references":2,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2020-26313"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/dotmesh-io/dotmesh","purl":"pkg:golang/github.com/dotmesh-io/dotmesh","source":"GO-2024-2849"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.8.1"],"package":"github.com/dotmesh-io/dotmesh","purl":null,"source":"GHSA-hf54-fq2m-p9v6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.8.1"],"package":"github.com/dotmesh-io/dotmesh","purl":"pkg:golang/github.com/dotmesh-io/dotmesh","source":"GHSA-hf54-fq2m-p9v6"}],"prev":{"headline":"GHSL-2020-312: Regular Expression Denial of Service (ReDoS) in useragent","id":"CVE-2020-26311"},"products":["dotmesh"],"published":"2024-05-14","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-04","vendors":["dotmesh-io"]},"summary":"Attackers can read or write arbitrary files outside the target directory via malicious tarballs exploiting symbolic link handling in dotmesh.","url":"https://insights.sbomify.com/CVE-2020-26312/"}