Medium
nim — security advisory
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.
- Products
- nim
- Affected versions
- 0.11.2+dfsg1-4, 0.12.0-2, 0.17.2-1ubuntu1, 0.17.2-1ubuntu2, 0.20.2-1, 1.0.2-1, 1.0.3~rc-1, 1.0.4-1, 1.0.6-1, 1.6.14-1, 1.6.14-1ubuntu1, 1.6.14-1ubuntu2, 2.2.10-1, 2.2.4-1, 2.2.4-2
- Fixed versions
- Not specified
- CVEs
- CVE-2020-23171
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:29 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2020-23171
nim
Fixed versions: Not specified
nim
Fixed versions: Not specified
nim
Fixed versions: Not specified
nim
Fixed versions: Not specified
nim
Fixed versions: Not specified
nim
Fixed versions: Not specified
nim
Fixed versions: Not specified
Complete source record
{
"id": "61886f1106435511d09f2a424bcee0a6c67e5719620aa120d37a34de687f38b2",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-23171",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2020-23171",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2020-23171",
"products": [
{
"name": {
"value": "nim",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.11.2+dfsg1-4",
"evidence": "/affected/0/versions"
},
{
"value": "0.12.0-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "nim",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.17.2-1ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "0.17.2-1ubuntu2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "nim",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.20.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.0.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.0.3~rc-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.0.4-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.0.6-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "nim",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.6.14-1",
"evidence": "/affected/3/versions"
},
{
"value": "1.6.14-1ubuntu1",
"evidence": "/affected/3/versions"
},
{
"value": "1.6.14-1ubuntu2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "nim",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.6.14-1ubuntu2",
"evidence": "/affected/4/versions"
},
{
"value": "2.2.4-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "nim",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2.4-2",
"evidence": "/affected/5/versions"
},
{
"value": "2.2.10-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "nim",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2.4-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.2.4-2",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2020-23171",
"aliases": [
"UBUNTU-CVE-2020-23171"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nim",
"purl": "pkg:deb/ubuntu/nim?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.11.2+dfsg1-4",
"0.12.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nim",
"binary_version": "0.12.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nim",
"purl": "pkg:deb/ubuntu/nim?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.17.2-1ubuntu1",
"0.17.2-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nim",
"binary_version": "0.17.2-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nim",
"purl": "pkg:deb/ubuntu/nim?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.20.2-1",
"1.0.2-1",
"1.0.3~rc-1",
"1.0.4-1",
"1.0.6-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nim",
"binary_version": "1.0.6-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nim",
"purl": "pkg:deb/ubuntu/nim?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.6.14-1",
"1.6.14-1ubuntu1",
"1.6.14-1ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nim",
"binary_version": "1.6.14-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nim",
"purl": "pkg:deb/ubuntu/nim?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.6.14-1ubuntu2",
"2.2.4-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nim",
"binary_version": "2.2.4-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nim",
"purl": "pkg:deb/ubuntu/nim?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.2.4-2",
"2.2.10-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nim",
"binary_version": "2.2.10-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nim",
"purl": "pkg:deb/ubuntu/nim?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.2.4-1",
"2.2.4-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-23171.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nim",
"binary_version": "2.2.4-2"
}
]
}
}
],
"modified": "2026-10-17T12:56:55.274592490Z",
"provider": "osv",
"upstream": [
"CVE-2020-23171"
],
"references": [
"https://ubuntu.com/security/CVE-2020-23171",
"https://github.com/nim-lang/zip/issues/54",
"https://www.cve.org/CVERecord?id=CVE-2020-23171"
]
},
"related_cves": [
{
"value": "CVE-2020-23171",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356539,
"published_at": "2021-08-10T17:15:00+00:00"
}