Skip to content
OpenAdvisories
High · 7.5 CVE-2021-21373 EUVD-2021-8683

Nimble falls back to insecure http url when fetching packages

Published Mar 26, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

Nimble is a package manager for the Nim programming language. In Nim release versions before versions 1.2.10 and 1.4.4, "nimble refresh" fetches a list of Nimble packages over HTTPS by default. In case of error it falls back to a non-TLS URL http://irclogs.nim-lang.org/packages.json. An attacker able to perform MitM can deliver a modified package list containing malicious software packages. If the packages are installed and used the attack escalates to untrusted code execution.

Affected products

VendorProductAffectedFixed
nim-lang security < 1.2.10, >= 1.4.0, < 1.4.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nim 1.4.6+really1.4.2-1 —
Debian 12 nim 1.4.6+really1.4.2-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 nim No fix yet —
Ubuntu 26.04 LTS nim No fix yet —
Ubuntu 25.10 nim No fix yet —
Ubuntu 24.04 LTS nim No fix yet —
Ubuntu 20.04 LTS nim No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS nim No fix yet —
Ubuntu 16.04 LTS nim No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP4 nim 1.6.6-bp154.2.3.1 openSUSE-SU-2022:10101-1
SUSE Package Hub 15 SP3 nim 1.6.6-bp153.2.3.1 openSUSE-SU-2022:10095-1
SUSE Package Hub 15 SP2 nim 1.2.12-bp152.4.3.1 openSUSE-SU-2021:0628-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nim 1.2.12-1.7 openSUSE-SU-2024:11093-1
openSUSE Leap 15.4 nim 1.6.6-bp154.2.3.1 openSUSE-SU-2022:10101-1
openSUSE Leap 15.3 nim 1.6.6-bp153.2.3.1 openSUSE-SU-2022:10095-1
openSUSE Leap 15.2 nim 1.2.12-lp152.2.3.1 openSUSE-SU-2021:0618-1

Advisories 5

References