Files
CVEs-PoC/2021/CVE-2021-21374.md
T
2025-09-29 21:09:30 +02:00

21 lines
1.5 KiB
Markdown

### [CVE-2021-21374](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21374)
![](https://img.shields.io/static/v1?label=Product&message=security&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%201.2.10%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=%3E%3D%201.4.0%2C%20%3C%201.4.4%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-348%20Use%20of%20Less%20Trusted%20Source&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-349%3A%20Acceptance%20of%20Extraneous%20Untrusted%20Data%20With%20Trusted%20Data&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-599%3A%20Missing%20Validation%20of%20OpenSSL%20Certificate&color=brightgreen)
### 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 without full verification of the SSL/TLS certificate due to the default setting of httpClient. 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.
### POC
#### Reference
- https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/
#### Github
No PoCs found on GitHub currently.