{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-6038",
        "ASSIGNER": "security@huntr.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "A Regular Expression Denial of Service (ReDoS) vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerability is located in the filter_history function within the utils.py module. This function takes a user-provided keyword and attempts to match it against chat history filenames using a regular expression search. Due to the lack of sanitization or validation of the keyword parameter, an attacker can inject a specially crafted regular expression, leading to a denial of service condition. This can cause severe degradation of service performance and potential system unavailability."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-625 Permissive Regular Expression",
                        "cweId": "CWE-625"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "gaizhenbiao",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "gaizhenbiao/chuanhuchatgpt",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<=",
                                            "version_name": "unspecified",
                                            "version_value": "latest"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://huntr.com/bounties/d41cca0a-82bc-4cbf-a52a-928d304fb42d",
                "refsource": "MISC",
                "name": "https://huntr.com/bounties/d41cca0a-82bc-4cbf-a52a-928d304fb42d"
            }
        ]
    },
    "source": {
        "advisory": "d41cca0a-82bc-4cbf-a52a-928d304fb42d",
        "discovery": "EXTERNAL"
    },
    "impact": {
        "cvss": [
            {
                "version": "3.0",
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                "baseScore": 7.5,
                "baseSeverity": "HIGH"
            }
        ]
    }
}