{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2020-4041",
        "STATE": "PUBLIC",
        "TITLE": "The filename of uploaded files vulnerable to stored XSS in Bolt CMS"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "bolt",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 3.7.1"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "bolt"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "In Bolt CMS before version 3.7.1, the filename of uploaded files was vulnerable to stored XSS. It is not possible to inject javascript code in the file name when creating/uploading the file. But, once created/uploaded, it can be renamed to inject the payload in it. Additionally, the measures to prevent renaming the file to disallowed filename extensions could be circumvented. This is fixed in Bolt 3.7.1."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 7.4,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "NONE",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "CHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/bolt/bolt/pull/7853",
                "refsource": "MISC",
                "url": "https://github.com/bolt/bolt/pull/7853"
            },
            {
                "name": "https://github.com/bolt/bolt/commit/b42cbfcf3e3108c46a80581216ba03ef449e419f",
                "refsource": "MISC",
                "url": "https://github.com/bolt/bolt/commit/b42cbfcf3e3108c46a80581216ba03ef449e419f"
            },
            {
                "name": "https://github.com/bolt/bolt/security/advisories/GHSA-68q3-7wjp-7q3j",
                "refsource": "CONFIRM",
                "url": "https://github.com/bolt/bolt/security/advisories/GHSA-68q3-7wjp-7q3j"
            },
            {
                "refsource": "MISC",
                "name": "http://packetstormsecurity.com/files/158299/Bolt-CMS-3.7.0-XSS-CSRF-Shell-Upload.html",
                "url": "http://packetstormsecurity.com/files/158299/Bolt-CMS-3.7.0-XSS-CSRF-Shell-Upload.html"
            },
            {
                "refsource": "FULLDISC",
                "name": "20200703 Bolt CMS <= 3.7.0 Multiple Vulnerabilities - CSRF to RCE",
                "url": "http://seclists.org/fulldisclosure/2020/Jul/4"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-68q3-7wjp-7q3j",
        "discovery": "UNKNOWN"
    }
}