Skip to content

Nimble falls back to insecure http url when fetching packages

High
FedericoCeratto published GHSA-8w52-r35x-rgp8 Mar 26, 2021

Package

Nimble (Nim)

Affected versions

< 1.4.4 (Nim release version)

Patched versions

1.2.10 and 1.4.4

Description

Impact

"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.

References

https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L

CVE ID

CVE-2021-21373

Weaknesses

Credits