{"id":"CVE-2025-8959","published":"2025-08-15T20:32:52Z","modified":"2025-08-15T20:46:06Z","title":"HashiCorp go-getter Vulnerable to Arbitrary Read through Symlink Attack","vendor":"HashiCorp","product":"Shared library","tier":"tail","description":{"text":"HashiCorp's go-getter library subdirectory download feature is vulnerable to symlink attacks leading to unauthorized read access beyond the designated directory boundaries. This vulnerability, identified as CVE-2025-8959, is fixed in go-getter 1.7.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00647,"percentile":0.51959,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2025-23-hashicorp-go-getter-vulnerable-to-arbitrary-read-through-symlink-attack/76242","tags":[]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":10.39},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"hashicorp","affectedVersions":[{"vendor":"HashiCorp","product":"Shared library","versions":["< 1.7.8"]}],"capec":[{"id":"CAPEC-126","name":"Path Traversal"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-08-15T20:45:56.006768Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/hashicorp/go-getter","vulnerableRanges":["<1.7.9"],"patched":["1.7.9"],"from":["GHSA-wjrx-6529-hcj3","GO-2025-3892"],"provenance":"source"}],"summary":{"text":"The flaw is a symlink-following weakness (improper link resolution before file access) in HashiCorp's go-getter shared library, specifically in its subdirectory download feature. An attacker who can supply content that is fetched through this feature can read files beyond the designated directory boundaries, with no authentication or user interaction required and only network access needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:20Z"},"euvd":{"id":"EUVD-2025-25049","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hashicorp-shared-library-cve-2022-26945","parents":[{"from":"CVE-2022-26945","to":"CVE-2025-8959","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["copy_dir.go"],"commits":["https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48","https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45","https://github.com/hashicorp/go-getter/commit/87541b2501c00df5eaedea6acc61a2a4a4efa5b7"],"basis":"shared function","functions":["copyDir","update"]}]},{"from":"CVE-2022-30321","to":"CVE-2025-8959","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["copy_dir.go"],"commits":["https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48","https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45","https://github.com/hashicorp/go-getter/commit/87541b2501c00df5eaedea6acc61a2a4a4efa5b7"],"basis":"shared function","functions":["copyDir","update"]}]},{"from":"CVE-2022-30322","to":"CVE-2025-8959","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["copy_dir.go"],"commits":["https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48","https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45","https://github.com/hashicorp/go-getter/commit/87541b2501c00df5eaedea6acc61a2a4a4efa5b7"],"basis":"shared function","functions":["copyDir","update"]}]},{"from":"CVE-2022-30323","to":"CVE-2025-8959","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["copy_dir.go"],"commits":["https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48","https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45","https://github.com/hashicorp/go-getter/commit/87541b2501c00df5eaedea6acc61a2a4a4efa5b7"],"basis":"shared function","functions":["copyDir","update"]}]}],"packageHistory":[{"cve":"CVE-2023-0475","published":"2023-02-16","fixed":"1.7.0","kev":false},{"cve":"CVE-2024-3817","published":"2024-04-17","fixed":"1.7.4","kev":false},{"cve":"CVE-2024-6257","published":"2024-06-25","fixed":"1.7.5","kev":false,"link":{"from":"CVE-2024-6257","to":"CVE-2025-8959","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/hashicorp/go-getter","fromFixed":"1.7.5","toFixed":"1.7.9","daysApart":416},{"kind":"same-code","provenance":"machine","files":["get_git.go"],"commits":["https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9","https://github.com/hashicorp/go-getter/commit/87541b2501c00df5eaedea6acc61a2a4a4efa5b7"],"basis":"shared file"}]}},{"cve":"CVE-2025-8959","published":"2025-08-15","fixed":"1.7.9","kev":false},{"cve":"CVE-2026-4660","published":"2026-04-09","fixed":"1.8.6","kev":false,"link":{"from":"CVE-2025-8959","to":"CVE-2026-4660","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/hashicorp/go-getter","fromFixed":"1.7.9","toFixed":"1.8.6","daysApart":237}]}},{"cve":"CVE-2022-26945","published":"2022-05-25","fixed":"2.1.0","kev":false},{"cve":"CVE-2022-30321","published":"2022-05-25","fixed":"2.1.0","kev":false}],"package":"Go:github.com/hashicorp/go-getter"}}