{"id":"UBUNTU-CVE-2020-23171","details":"A vulnerability in all versions of Nim-lang allows unauthenticated attackers to write files to arbitrary directories via a crafted zip file with dot-slash characters included in the name of the crafted file.","modified":"2026-05-20T16:04:15.926344995Z","published":"2021-08-10T17:15:00Z","upstream":["CVE-2020-23171"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-23171"},{"type":"REPORT","url":"https://github.com/nim-lang/zip/issues/54"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-23171"}],"affected":[{"package":{"name":"nim","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11.2+dfsg1-4","0.12.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"nim","binary_version":"0.12.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.17.2-1ubuntu1","0.17.2-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"nim","binary_version":"0.17.2-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.20.2-1","1.0.2-1","1.0.3~rc-1","1.0.4-1","1.0.6-1"],"ecosystem_specific":{"binaries":[{"binary_name":"nim","binary_version":"1.0.6-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.14-1","1.6.14-1ubuntu1","1.6.14-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.14-1ubuntu2","binary_name":"nim"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/nim?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.14-1ubuntu2","2.2.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"nim","binary_version":"2.2.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.4-1","2.2.4-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.4-2","binary_name":"nim"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}