Files
CVEs-PoC/2021/CVE-2021-21374.md
T
2024-06-18 02:51:15 +02:00

20 lines
1.3 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=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-348%20Use%20of%20Less%20Trusted%20Source&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-349%3A%20Acceptance%20of%20Extraneous%20Untrusted%20Data%20With%20Trusted%20Data&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-599%3A%20Missing%20Validation%20of%20OpenSSL%20Certificate&color=brighgreen)
### 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.