{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-31031",
        "STATE": "PUBLIC",
        "TITLE": "Potential stack buffer overflow when parsing message as a STUN client"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "pjproject",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "<= 2.12.1"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "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 language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. In versions prior to and including 2.12.1 a stack buffer overflow vulnerability affects PJSIP users that use STUN in their applications, either by: setting a STUN server in their account/media config in PJSUA/PJSUA2 level, or directly using `pjlib-util/stun_simple` API. A patch is available in commit 450baca which should be included in the next release. There are no known workarounds for this issue."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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-26j7-ww69-c4qj",
                "refsource": "CONFIRM",
                "url": "https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj"
            },
            {
                "name": "https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202",
                "refsource": "MISC",
                "url": "https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202210-37",
                "url": "https://security.gentoo.org/glsa/202210-37"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20230222 [SECURITY] [DLA 3335-1] asterisk security update",
                "url": "https://lists.debian.org/debian-lts-announce/2023/02/msg00029.html"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-5358",
                "url": "https://www.debian.org/security/2023/dsa-5358"
            },
            {
                "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-26j7-ww69-c4qj",
        "discovery": "UNKNOWN"
    }
}