{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-37457",
        "ASSIGNER": "security-advisories@github.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Asterisk is an open source private branch exchange and telephony toolkit. In Asterisk versions 18.20.0 and prior, 20.5.0 and prior, and 21.0.0; as well as ceritifed-asterisk 18.9-cert5 and prior, the 'update' functionality of the PJSIP_HEADER dialplan function can exceed the available buffer space for storing the new value of a header. By doing so this can overwrite memory or cause a crash. This is not externally exploitable, unless dialplan is explicitly written to update a header based on data from an outside source. If the 'update' functionality is not used the vulnerability does not occur. A patch is available at commit a1ca0268254374b515fa5992f01340f7717113fa."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')",
                        "cweId": "CWE-120"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "asterisk",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "asterisk",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "<= 18.20.0"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": ">= 19.0.0, <= 20.5.0"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "= 21.0.0"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": " <= 18.9-cert5"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/asterisk/asterisk/security/advisories/GHSA-98rc-4j27-74hh",
                "refsource": "MISC",
                "name": "https://github.com/asterisk/asterisk/security/advisories/GHSA-98rc-4j27-74hh"
            },
            {
                "url": "https://github.com/asterisk/asterisk/commit/a1ca0268254374b515fa5992f01340f7717113fa",
                "refsource": "MISC",
                "name": "https://github.com/asterisk/asterisk/commit/a1ca0268254374b515fa5992f01340f7717113fa"
            },
            {
                "url": "https://lists.debian.org/debian-lts-announce/2023/12/msg00019.html",
                "refsource": "MISC",
                "name": "https://lists.debian.org/debian-lts-announce/2023/12/msg00019.html"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-98rc-4j27-74hh",
        "discovery": "UNKNOWN"
    },
    "impact": {
        "cvss": [
            {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
            }
        ]
    }
}