Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 807610 (CVE-2020-23171, CVE-2021-41259) - dev-lang/nim: multiple vulnerabilities
Summary: dev-lang/nim: multiple vulnerabilities
Alias: CVE-2020-23171, CVE-2021-41259
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
Whiteboard: ~4 [upstream]
Depends on:
Reported: 2021-08-10 19:59 UTC by John Helmert III
Modified: 2023-03-11 17:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-08-10 19:59:04 UTC

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.

In this case, it seems like the CVE description is accurate and all versions
are indeed vulnerable.
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-11-13 00:58:31 UTC
CVE-2021-41259 (

Nim is a systems programming language with a focus on efficiency, expressiveness, and elegance. In affected versions the uri.parseUri function which may be used to validate URIs accepts null bytes in the input URI. This behavior could be used to bypass URI validation. For example: parseUri("http://localhost\0hello").hostname is set to "localhost\0hello". Additionally, httpclient.getContent accepts null bytes in the input URL and ignores any data after the first null byte. Example: getContent("http://localhost\0hello") makes a request to localhost:80. An attacker can use a null bytes to bypass the check and mount a SSRF attack.