{"id":"CVE-2022-23608","summary":"Use after free in PJSIP","details":"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.","aliases":["GHSA-ffff-m5fm-qm62"],"modified":"2026-12-02T23:04:22.782504695Z","published":"2022-02-22T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23608.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-416"]},"references":[{"type":"WEB","url":"http://packetstormsecurity.com/files/166226/Asterisk-Project-Security-Advisory-AST-2022-005.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23608.json"},{"type":"ADVISORY","url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-ffff-m5fm-qm62"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23608"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202210-37"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5285"},{"type":"FIX","url":"https://github.com/pjsip/pjproject/commit/db3235953baa56d2fb0e276ca510fefca751643f"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2022/Mar/1"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00035.html"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00040.html"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00021.html"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/asterisk/asterisk","events":[{"introduced":"0"},{"fixed":"d436f568583184a13aa46349af5a3f0907087b44"},{"introduced":"a65908f83e2f17a3aca7eb39c8e06045aca02674"},{"fixed":"c28961a7d88cf065f693d1ea412c3e2b35e6d18e"},{"introduced":"2c1bba3cbec008c8ce35c78a2c79f9f207ea58bc"},{"fixed":"4cf4f5f7076125bc649727540de5922c21e0558f"},{"introduced":"de4f63b4824c91a0cd9f3d95f3b7923bec71960c"},{"fixed":"7eb4edc725d6fa6877d88129d7bf99c0a1604de9"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:asterisk:certified_asterisk:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"16.8.0"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:*","range":[{"introduced":"16.0.0"},{"fixed":"16.24.1"}]},{"cpe":"cpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:*","range":[{"introduced":"18.0.0"},{"fixed":"18.10.1"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:*","range":[{"introduced":"19.0.0"},{"fixed":"19.2.1"}]}]}},{"type":"GIT","repo":"https://github.com/pjsip/pjproject","events":[{"introduced":"0"},{"fixed":"db3235953baa56d2fb0e276ca510fefca751643f"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:teluu:pjsip:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"last_affected":"2.11.1"}],"source":"CPE_RANGE"},{"range":[{"fixed":"db3235953baa56d2fb0e276ca510fefca751643f"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["19.2.0","18.10.0","16.24.0","19.2.0-rc1","18.10.0-rc1","16.24.0-rc1","16.8.0-rc2","16.8.0-rc1","2.11","2.10"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-23608.json"}}],"schema_version":"1.9.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}