CVE-2023-27585: Buffer Overflow
PJSIP is a free and open source multimedia communication library written in C. A buffer overflow vulnerability in versions 2.13 and prior affects applications that use PJSIP DNS resolver. It doesn't affect PJSIP users who do not utilise PJSIP DNS resolver. This vulnerability is related to CVE-2022-24793. The difference is that this issue is in parsing the query record parsequery(), while the issue in CVE-2022-24793 is in parserr(). A patch is available as commit d1c5e4d in the master branch. A workaround is to disable DNS resolution in PJSIP config (by setting nameservercount to zero) or use an external resolver implementation instead.
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
ubuntu/ringto a version that resolves this vulnerability.Fixed in 20230206.0~ - Upgrade
Upgrade
debian/ringto a version that resolves this vulnerability.Fixed in 20230206.0~ds2-1.1+deb12u1 - Upgrade
Upgrade
debian/asteriskto a version that resolves this vulnerability.Fixed in 1:16.28.0~dfsg-0+deb10u3Fixed in 1:16.28.0~dfsg-0+deb11u3Fixed in 1:20.4.0~dfsg+~cs6.13.40431414-1 - Upgrade
Upgrade
debian/ringto a version that resolves this vulnerability.Fixed in 20190215.1.f152c98~ds1-1+deb10u2Fixed in 20210112.2.b757bac~ds1-1+deb11u1Fixed in 20230206.0~ds2-1.1+deb12u1Fixed in 20230922.0~ds1-1 - Upgrade
Upgrade
ubuntu/ringto a version that resolves this vulnerability.Fixed in 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/ringto a version that resolves this vulnerability.Fixed in 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 - Upgrade
Upgrade
PJSIPto a version that resolves this vulnerability.Patch d1c5e4d - Configuration
Set nameserver_count to zero in the PJSIP configuration to disable DNS resolution
PJSIP DNS resolver nameserver_count = 0
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2023-27585?
CVE-2023-27585 is a buffer overflow vulnerability in PJSIP DNS resolver affecting versions 2.13 and prior.
Who is affected by CVE-2023-27585?
Applications that use PJSIP DNS resolver version 2.13 and prior are affected by CVE-2023-27585.
How severe is CVE-2023-27585?
CVE-2023-27585 has a severity rating of 7.5 (high).
How can I fix CVE-2023-27585?
Updating to a version of PJSIP that is not affected by CVE-2023-27585 is recommended.
Where can I find more information about CVE-2023-27585?
More information about CVE-2023-27585 can be found at the following references: [1] [2] [3].