CVE catalog

CVE-2021-21372

nim: CVE-2021-21372

[CVE catalog]

Severity
High · CVSS 8.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
3.62% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannimsid2.2.12-1fixed
Debiannimforky2.2.12-1fixed
Debiannimbookworm1.6.10-2fixed
Opensusenimleap 15.21.2.12-lp152.2.3.1fixed
Susenimpackage hub 15 sp21.2.12-bp152.4.3.1fixed
Opensusenimtumbleweed1.2.12-1.7fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannimsourcesid1.4.6+really1.4.2-1not yet assignedNot reported[987272]
Debiannimsourceforky1.4.6+really1.4.2-1not yet assignedNot reported[987272]
Debiannimsourcebookworm1.4.6+really1.4.2-1not yet assignedNot reported[987272]
Opensusenimrpmleap 15.21.2.12-lp152.2.3.1Not reportedOPENSUSE-SU-2021:0618-1Not reported
Susenimrpmpackage hub 15 sp21.2.12-bp152.4.3.1Not reportedOPENSUSE-SU-2021:0628-1Not reported
Opensusenimrpmtumbleweed1.2.12-1.7Not reportedOPENSUSE-SU-2024:11093-1Not reported

[Debian bug #987272]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [nim]Fixed
    Details (2)
    • 1.6.10-2 · amd64 · bookworm

      Fixed · Fixed: 1.4.6+really1.4.2-1

      dsa · nim · debian · bookworm; dsa · nim · debian · 12

    • 1.6.10-2 · arm64 · bookworm

      Fixed · Fixed: 1.4.6+really1.4.2-1

      dsa · nim · debian · bookworm; dsa · nim · debian · 12

  • [nim-doc]Fixed

    Source package: [nim]

    Details (2)
    • 1.6.10-2 · all · bookworm

      Fixed · Fixed: 1.4.6+really1.4.2-1

      dsa · nim · debian · bookworm; dsa · nim · debian · 12

    • 1.6.10-2 · all · bookworm

      Fixed · Fixed: 1.4.6+really1.4.2-1

      dsa · nim · debian · bookworm; dsa · nim · debian · 12

[openSUSE Tumbleweed]

  • [nim]Fixed

    Source package: [nim]

    Details (1)
    • 2.2.10-1.3 · x86_64 · tumbleweed

      Fixed · Fixed: 1.2.12-1.7

      dsa · nim · opensuse · tumbleweed

Observed:

References