CVE-2022-42705 Use after free in n/a
A remote authenticated attacker can crash the Asterisk PBX server by triggering a use-after-free condition during concurrent subscription activities.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-42705?
CVE-2022-42705 is a medium-severity use after free vulnerability in n/a, published on 5 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A use-after-free in res_pjsip_pubsub.c in Sangoma Asterisk 16.28, 18.14, 19.6, and certified/18.9-cert2 may allow a remote authenticated attacker to crash Asterisk (denial of service) by performing activity on a subscription via a reliable transport at the same time that Asterisk is also performing activity on that subscription.
Weakness: CWE-416
Which versions are affected by CVE-2022-42705?
It affects 2 products.
Products include Sangoma Asterisk, Sangoma Certified Asterisk.
How do I fix CVE-2022-42705?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-42705 being exploited?
There is no known exploitation of CVE-2022-42705 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2024-57520 Path traversal in n/a
- CVE-2025-47779 Using malformed From header can forge identity with ";" or NULL in name portion
- CVE-2025-57767 Asterisk can crash from a specifically malformed Authorization header in an incoming SIP request
- CVE-2022-37325 Memory corruption in n/a
- CVE-2025-1131 Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation
Sources
Also known as ALPINE-CVE-2022-42705, DEBIAN-CVE-2022-42705, GHSA-89gw-96wv-f4r4, UBUNTU-CVE-2022-42705.