{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-21503",
        "ASSIGNER": "report@snyk.io",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.\r\rExploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Regular Expression Denial of Service (ReDoS)",
                        "cweId": "CWE-1333"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "n/a",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "black",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "24.3.0"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273",
                "refsource": "MISC",
                "name": "https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273"
            },
            {
                "url": "https://github.com/psf/black/releases/tag/24.3.0",
                "refsource": "MISC",
                "name": "https://github.com/psf/black/releases/tag/24.3.0"
            },
            {
                "url": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8",
                "refsource": "MISC",
                "name": "https://github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8"
            }
        ]
    },
    "credits": [
        {
            "lang": "en",
            "value": "Sajeeb Lohani"
        }
    ],
    "impact": {
        "cvss": [
            {
                "version": "3.1",
                "attackVector": "NETWORK",
                "attackComplexity": "LOW",
                "privilegesRequired": "NONE",
                "userInteraction": "NONE",
                "scope": "UNCHANGED",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "availabilityImpact": "LOW",
                "baseScore": 5.3,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P"
            }
        ]
    }
}