{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-24793",
        "STATE": "PUBLIC",
        "TITLE": "Potential heap buffer overflow when parsing DNS packets in PJSIP"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "pjproject",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "<= 2.12"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "pjsip"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "PJSIP is a free and open source multimedia communication library written in C. A buffer overflow vulnerability in versions 2.12 and prior affects applications that use PJSIP DNS resolution. It doesn't affect PJSIP users who utilize an external resolver. This vulnerability is related to CVE-2023-27585. The difference is that this issue is in parsing the query record `parse_rr()`, while the issue in CVE-2023-27585 is in `parse_query()`. A patch is available in the `master` branch of the `pjsip/pjproject` GitHub repository. A workaround is to disable DNS resolution in PJSIP config (by setting `nameserver_count` to zero) or use an external resolver instead."
            }
        ]
    },
    "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"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/pjsip/pjproject/security/advisories/GHSA-p6g5-v97c-w5q4",
                "refsource": "CONFIRM",
                "url": "https://github.com/pjsip/pjproject/security/advisories/GHSA-p6g5-v97c-w5q4"
            },
            {
                "name": "https://github.com/pjsip/pjproject/commit/9fae8f43accef8ea65d4a8ae9cdf297c46cfe29a",
                "refsource": "MISC",
                "url": "https://github.com/pjsip/pjproject/commit/9fae8f43accef8ea65d4a8ae9cdf297c46cfe29a"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20220531 [SECURITY] [DLA 3036-1] pjproject security update",
                "url": "https://lists.debian.org/debian-lts-announce/2022/05/msg00047.html"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202210-37",
                "url": "https://security.gentoo.org/glsa/202210-37"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20221117 [SECURITY] [DLA 3194-1] asterisk security update",
                "url": "https://lists.debian.org/debian-lts-announce/2022/11/msg00021.html"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-5285",
                "url": "https://www.debian.org/security/2022/dsa-5285"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update",
                "url": "https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-p6g5-v97c-w5q4",
        "discovery": "UNKNOWN"
    }
}