Skip to content
OpenAdvisories
High · 8.3 CVE-2021-21372 EUVD-2021-8682

Nimble arbitrary code execution for specially crafted package metadata

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 version before versions 1.2.10 and 1.4.4, Nimble doCmd is used in different places and can be leveraged to execute arbitrary commands. An attacker can craft a malicious entry in the packages.json package list to trigger 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