{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-23608",
        "STATE": "PUBLIC",
        "TITLE": "Use after free in PJSIP"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "pjproject",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "<= 2.11.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 up to and including 2.11.1 when in a dialog set (or forking) scenario, a hash key shared by multiple UAC dialogs can potentially be prematurely freed when one of the dialogs is destroyed . The issue may cause a dialog set to be registered in the hash table multiple times (with different hash keys) leading to undefined behavior such as dialog list collision which eventually leading to endless loop. A patch is available in commit db3235953baa56d2fb0e276ca510fefca751643f which will be included in the next release. There are no known workarounds for this issue."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.1,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-416: Use After Free"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/pjsip/pjproject/security/advisories/GHSA-ffff-m5fm-qm62",
                "refsource": "CONFIRM",
                "url": "https://github.com/pjsip/pjproject/security/advisories/GHSA-ffff-m5fm-qm62"
            },
            {
                "name": "https://github.com/pjsip/pjproject/commit/db3235953baa56d2fb0e276ca510fefca751643f",
                "refsource": "MISC",
                "url": "https://github.com/pjsip/pjproject/commit/db3235953baa56d2fb0e276ca510fefca751643f"
            },
            {
                "refsource": "FULLDISC",
                "name": "20220304 AST-2022-005: pjproject: undefined behavior after freeing a dialog set",
                "url": "http://seclists.org/fulldisclosure/2022/Mar/1"
            },
            {
                "refsource": "MISC",
                "name": "http://packetstormsecurity.com/files/166226/Asterisk-Project-Security-Advisory-AST-2022-005.html",
                "url": "http://packetstormsecurity.com/files/166226/Asterisk-Project-Security-Advisory-AST-2022-005.html"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20220328 [SECURITY] [DLA 2962-1] pjproject security update",
                "url": "https://lists.debian.org/debian-lts-announce/2022/03/msg00035.html"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20220331 [SECURITY] [DLA 2962-2] pjproject regression update",
                "url": "https://lists.debian.org/debian-lts-announce/2022/03/msg00040.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-ffff-m5fm-qm62",
        "discovery": "UNKNOWN"
    }
}