CVE-2022-24754: Buffer overflow in pjsip
PJSIP is a free and open source multimedia communication library written in C language. In versions prior to and including 2.12 PJSIP there is a stack-buffer overflow vulnerability which only impacts PJSIP users who accept hashed digest credentials (credentials with datatype PJSIPCREDDATADIGEST). This issue has been patched in the master branch of the PJSIP repository and will be included with the next release. Users unable to upgrade need to check that the hashed digest data length must be equal to PJSIPMD5STRLEN before passing to PJSIP.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/ringto a version that resolves this vulnerability.Fixed in 20180228.1.503 - Upgrade
Upgrade
ubuntu/ringto a version that resolves this vulnerability.Fixed in 20190215.1. - Upgrade
Upgrade
debian/asteriskto a version that resolves this vulnerability.Fixed in 1:22.10.1+dfsg+~cs6.17.60671434-1 - Upgrade
Upgrade
debian/ringto a version that resolves this vulnerability.Fixed in 20230206.0~ds2-1.1+deb12u1 - Upgrade
Upgrade
alpine/pjprojectto a version that resolves this vulnerability.Fixed in 2.12.1-r0 - Upgrade
Upgrade
debian/ringto a version that resolves this vulnerability.Fixed in 20230206.0~ds1-1 - Compensating control
For users unable to upgrade, validate that hashed digest credential data supplied with data_type PJSIP_CRED_DATA_DIGEST has a length equal to PJSIP_MD5STRLEN before passing it to PJSIP.
Event History
Frequently Asked Questions
What is CVE-2022-24754?
CVE-2022-24754 is a stack-buffer overflow vulnerability in PJSIP versions prior to and including 2.12.
How does CVE-2022-24754 impact PJSIP users?
CVE-2022-24754 only impacts PJSIP users who accept hashed digest credentials.
What is the severity of CVE-2022-24754?
CVE-2022-24754 has a severity rating of 9.8 (Critical).
Which software versions are affected by CVE-2022-24754?
PJSIP versions prior to and including 2.12 are affected by CVE-2022-24754.
How can I fix CVE-2022-24754?
To fix CVE-2022-24754, users should update to a patched version of PJSIP (version 2.12 or later).