Linux Security
Linux Security
Linux Security

ArchLinux: 202104-6: nimble: multiple issues

Date 29 Apr 2021
102
Posted By LinuxSecurity Advisories
The package nimble before version 1:0.13.1-1 is vulnerable to multiple issues including arbitrary command execution and man-in-the-middle.
Arch Linux Security Advisory ASA-202104-6
=========================================

Severity: High
Date    : 2021-04-29
CVE-ID  : CVE-2021-21372 CVE-2021-21373 CVE-2021-21374
Package : nimble
Type    : multiple issues
Remote  : Yes
Link    : https://security.archlinux.org/AVG-1842

Summary
=======

The package nimble before version 1:0.13.1-1 is vulnerable to multiple
issues including arbitrary command execution and man-in-the-middle.

Resolution
==========

Upgrade to 1:0.13.1-1.

# pacman -Syu "nimble>=1:0.13.1-1"

The problems have been fixed upstream in version 0.13.1.

Workaround
==========

None.

Description
===========

- CVE-2021-21372 (arbitrary command execution)

In Nimble before version 0.13.0, doCmd can be leveraged to execute
arbitrary commands. An attacker can craft a malicious entry in the
packages.json package list to trigger code execution.

- CVE-2021-21373 (man-in-the-middle)

In Nimble before version 0.13.0, "nimble refresh" fetches a list of
Nimble packages over HTTPS by default. In case of error it falls back
to a non-TLS URL https://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.

- CVE-2021-21374 (man-in-the-middle)

In Nimble before version 0.13.0, "nimble refresh" fetches a list of
Nimble packages over HTTPS without full verification of the SSL/TLS
certificate due to the default setting of httpClient. An attacker able
to perform man-in-the-middle (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.

Impact
======

An attacker can perform a man-in-the-middle to inject malicious package
dependencies to a client. In addition, a malicious packager can execute
arbitrary code on the affected client by providing a maliciously-
crafted package metadata file.

References
==========

https://github.com/nim-lang/security/security/advisories/GHSA-rg9f-w24h-962p
https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/
https://github.com/nim-lang/nimble/commit/7bd63d504a4157b8ed61a51af47fb086ee818c37
https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8
https://github.com/nim-lang/nimble/commit/aec0ae5c23d2e2a2ec28e97dcb9dd6cb1e68b134
https://github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx
https://github.com/nim-lang/nimble/commit/b60b6f8d5832c7393676ba7bcd0e07d293cec738
https://security.archlinux.org/CVE-2021-21372
https://security.archlinux.org/CVE-2021-21373
https://security.archlinux.org/CVE-2021-21374

Advisories

LinuxSecurity Poll

How frequently do you patch/update your system?

No answer selected. Please try again.
Please select either existing option or enter your own, however not both.
Please select minimum 0 answer(s) and maximum 3 answer(s).
/main-polls/52-how-frequently-do-you-patch-update-your-system?task=poll.vote&format=json
52
radio
[{"id":"179","title":"As soon as patches\/updates are released - I track advisories for my distro(s) diligently","votes":"67","type":"x","order":"1","pct":75.28,"resources":[]},{"id":"180","title":"Every so often, when I think of it","votes":"14","type":"x","order":"2","pct":15.73,"resources":[]},{"id":"181","title":"Hardly ever","votes":"8","type":"x","order":"3","pct":8.99,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350

Please vote first in order to view vote results.

VOTE ON THE POLL PAGE


VIEW MORE POLLS

bottom 200

Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]

We use cookies to provide and improve our services. By using our site, you consent to our Cookie Policy.