Back to Labs
Security Advisory

CVE-2022-23608

About

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.

Weakness (CWE):CWE-416

Rainforest analyst review

PJSIP has a use-after-free in dialog-set (forking) scenarios: a hash key shared by multiple UAC dialogs can be freed prematurely when one dialog is destroyed, which can register a dialog set in the hash table multiple times and lead to undefined behavior — dialog list collisions that end in an endless loop. PJSIP underpins SIP/VoIP stacks, so the practical impact is a remotely triggerable path to memory corruption and denial of service in telephony infrastructure, with the ceiling of undefined behavior that use-after-free implies.

The vector marks high attack complexity, and the description explains why: it depends on a specific forking/dialog-set condition and a particular destruction ordering, not a single trivial packet. So while it's network-reachable and unauthenticated, reliably driving the use-after-free takes more than spray-and-pray — this is a capable attacker targeting a SIP service, not a botnet one-liner. Where it lands, a hung or crashed voice service is a genuine availability hit for anyone relying on that telephony path, and memory corruption always carries a worse-case tail.

Because PJSIP is an embedded library, our handling is dependency inventory across the products that bundle it — the CVE spans Asterisk, Certified Asterisk, Debian, and PJSIP itself. The work is mapping which VoIP systems in the estate build on the affected 2.11.1-or-earlier library and getting them onto builds that include the fix commit. There are no vendor workarounds per the advisory, so patching is the only real remedy; we rank it by whether the SIP service is exposed to untrusted callers versus confined to a trusted voice network.

References

Related CVEs

Frequently asked questions

What is CVE-2022-23608?

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 .

How severe is CVE-2022-23608?

CVE-2022-23608 carries a CVSS 3.1 base score of 8.1, rated high. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 90 out of 100, in the critical band.

How is CVE-2022-23608 exploited?

According to the CVSS vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H): attack vector Network, attack complexity High, privileges required None, user interaction None. Impact on confidentiality High, integrity High and availability High.

Which products are affected by CVE-2022-23608?

Public advisories list the following as affected: asterisk, certified asterisk, debian linux, pjsip. Check the references on this page for the exact versions each vendor confirms.

How do I fix CVE-2022-23608?

Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.

Empower Your Security Strategy with Rainforest

Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.

Share this:LinkedInX Email