{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2021-21374",
        "STATE": "PUBLIC",
        "TITLE": "Nimble fails to validate certificates due to insecure httpClient defaults"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "security",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 1.2.10"
                                        },
                                        {
                                            "version_value": ">= 1.4.0, < 1.4.4"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "nim-lang"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "LOW",
            "baseScore": 8.1,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "LOW",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "CHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:L",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-348 Use of Less Trusted Source"
                    }
                ]
            },
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-599: Missing Validation of OpenSSL Certificate"
                    }
                ]
            },
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/",
                "refsource": "MISC",
                "url": "https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/"
            },
            {
                "name": "https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130",
                "refsource": "MISC",
                "url": "https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130"
            },
            {
                "name": "https://github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx",
                "refsource": "CONFIRM",
                "url": "https://github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx"
            },
            {
                "name": "https://github.com/nim-lang/Nim/pull/16940",
                "refsource": "MISC",
                "url": "https://github.com/nim-lang/Nim/pull/16940"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-c2wm-v66h-xhxx",
        "discovery": "UNKNOWN"
    }
}