{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2021-41185",
        "STATE": "PUBLIC",
        "TITLE": "Download file outside intended directory"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Mycodo",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 8.12.7"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "kizniche"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Mycodo is an environmental monitoring and regulation system. An exploit in versions prior to 8.12.7 allows anyone with access to endpoints to download files outside the intended directory. A patch has been applied and a release made. Users should upgrade to version 8.12.7. As a workaround, users may manually apply the changes from the fix commit."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/kizniche/Mycodo/security/advisories/GHSA-252r-94ph-m229",
                "refsource": "CONFIRM",
                "url": "https://github.com/kizniche/Mycodo/security/advisories/GHSA-252r-94ph-m229"
            },
            {
                "name": "https://github.com/kizniche/Mycodo/issues/1105",
                "refsource": "MISC",
                "url": "https://github.com/kizniche/Mycodo/issues/1105"
            },
            {
                "name": "https://github.com/kizniche/Mycodo/commit/23ac5dd422029c2b6ae1701a3599b6d41b66a6a9",
                "refsource": "MISC",
                "url": "https://github.com/kizniche/Mycodo/commit/23ac5dd422029c2b6ae1701a3599b6d41b66a6a9"
            },
            {
                "name": "https://github.com/kizniche/Mycodo/releases/tag/v8.12.7",
                "refsource": "MISC",
                "url": "https://github.com/kizniche/Mycodo/releases/tag/v8.12.7"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-252r-94ph-m229",
        "discovery": "UNKNOWN"
    }
}