{"id":"CVE-2020-7667","aliases":["EUVD-2021-1296","GHSA-9423-6c93-gpp8","GO-2020-0042","SNYK-GOLANG-GITHUBCOMSASSOFTWAREGORPMUTILSCPIO-570427"],"status":"published","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","description":"In package github.com/sassoftware/go-rpmutils/cpio before version 0.1.0, the CPIO extraction functionality doesn't sanitize the paths of the archived files for leading and non-leading \"..\" which leads in file extraction outside of the current directory. Note: the fixing commit was applied to all affected versions which were re-released.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01643,"percentile":0.76586,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2020-06-24T12:00:15Z","modified":"2026-10-20T10:53:30Z","fixes":[{"ecosystem":"Go","package":"github.com/sassoftware/go-rpmutils","fixed_in":["0.1.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/sassoftware/go-rpmutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/sassoftware/go-rpmutils","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/sassoftware/go-rpmutils","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.0"}]}]}],"products":[{"vendor":"sas","product":"go_rpm_utils"}],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMSASSOFTWAREGORPMUTILSCPIO-570427","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/sassoftware/go-rpmutils/commit/a64058cf21b8aada501bba923c9aab66fb6febf0","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7667","tags":["advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0042","tags":["web"]},{"url":"https://snyk.io/research/zip-slip-vulnerability","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9423-6c93-gpp8"},{"url":"https://github.com/sassoftware/go-rpmutils","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-7667","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","description":"In package github.com/sassoftware/go-rpmutils/cpio before version 0.1.0, the CPIO extraction functionality doesn't sanitize the paths of the archived files for leading and non-leading \"..\" which leads in file extraction outside of the current directory. Note: the fixing commit was applied to all affected versions which were re-released.","status":"published","published":"2020-06-24T12:00:15.519Z","modified":"2024-09-17T02:48:08.483Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.787905Z"}],"euvd":[{"id":"EUVD-2021-1296","description":"In package github.com/sassoftware/go-rpmutils/cpio before version 0.1.0, the CPIO extraction functionality doesn't sanitize the paths of the archived files for leading and non-leading \"..\" which leads in file extraction outside of the current directory. Note: the fixing commit was applied to all affected versions which were re-released.","status":"published","published":"2020-06-24T12:00:15Z","modified":"2024-09-17T02:48:08Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-03T00:28:36.981601Z"}],"ghsa":[{"id":"GHSA-9423-6c93-gpp8","title":"github.com/sassoftware/go-rpmutils Arbitrary File Write via Archive Extraction (Zip Slip)","description":"The CPIO extraction functionality doesn't sanitize the paths of the archived files for leading and non-leading `..` which leads in file extraction outside of the current directory. Note, the fixing commit was applied to all affected versions which were re-released.","status":"published","published":"2021-06-23T17:13:29Z","modified":"2023-08-29T23:36:53Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:02.095916Z"}],"nvd":[{"id":"CVE-2020-7667","description":"In package github.com/sassoftware/go-rpmutils/cpio before version 0.1.0, the CPIO extraction functionality doesn't sanitize the paths of the archived files for leading and non-leading \"..\" which leads in file extraction outside of the current directory. Note: the fixing commit was applied to all affected versions which were re-released.","status":"published","published":"2020-06-24T12:15:12.677Z","modified":"2026-06-17T03:25:13.807Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:06:08.145904Z"}],"osv":[{"id":"CVE-2020-7667","description":"In package github.com/sassoftware/go-rpmutils/cpio before version 0.1.0, the CPIO extraction functionality doesn't sanitize the paths of the archived files for leading and non-leading \"..\" which leads in file extraction outside of the current directory. Note: the fixing commit was applied to all affected versions which were re-released.","status":"published","published":"2020-06-24T12:15:12.677Z","modified":"2026-10-20T10:53:30.784962143Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:17.34531Z"},{"id":"GHSA-9423-6c93-gpp8","title":"github.com/sassoftware/go-rpmutils Arbitrary File Write via Archive Extraction (Zip Slip)","description":"The CPIO extraction functionality doesn't sanitize the paths of the archived files for leading and non-leading `..` which leads in file extraction outside of the current directory. Note, the fixing commit was applied to all affected versions which were re-released.","status":"published","published":"2021-06-23T17:13:29Z","modified":"2026-07-08T06:49:49.155529848Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:43.123867Z"},{"id":"GO-2020-0042","title":"Arbitrary File Write via Archive Extraction (Zip Slip) in github.com/sassoftware/go-rpmutils","description":"Due to improper path sanitization, RPMs containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2026-07-08T06:49:49.155529848Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
