CVE-2022-23608
Use after free in PJSIP
Reported by github_m · Published February 22, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| asterisk | sangoma | 19.2.1, 18.10.1, 16.24.1 |
| certified_asterisk | asterisk | 16.8.0 |
| pjsip | teluu | 2.11.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pjsip | pjproject | <= 2.11.1 |
| pjsip | pjproject | 0 |
| alpine | pjproject | 0 |
Timeline
- Feb 22, 2022 CVE Published
- Feb 23, 2022 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 10, 2026 Security Advisory (7 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Jul 5, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-23608
vulnetix vdb fixes CVE-2022-23608
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-23608/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 20220304 AST-2022-005: pjproject: undefined behavior after freeing a dialog set mailing-list
- [debian-lts-announce] 20220328 [SECURITY] [DLA 2962-1] pjproject security update mailing-list
- [debian-lts-announce] 20220331 [SECURITY] [DLA 2962-2] pjproject regression update mailing-list
- GLSA-202210-37 vendor-advisory
- [debian-lts-announce] 20221117 [SECURITY] [DLA 3194-1] asterisk security update mailing-list
- DSA-5285 vendor-advisory
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update mailing-list
- https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html advisory