CVE-2022-24793: Potential heap buffer overflow when parsing DNS packets in PJSIP

Published Apr 6, 2022
·
Updated

PJSIP is a free and open source multimedia communication library written in C. A buffer overflow vulnerability in versions 2.12 and prior affects applications that use PJSIP DNS resolution. It doesn't affect PJSIP users who utilize an external resolver. This vulnerability is related to CVE-2023-27585. The difference is that this issue is in parsing the query record parserr(), while the issue in CVE-2023-27585 is in parsequery(). A patch is available in the master branch of the pjsip/pjproject GitHub repository. A workaround is to disable DNS resolution in PJSIP config (by setting nameservercount to zero) or use an external resolver instead.

Affected Software

19 affected componentsFixes available
ubuntu/ring<20180228.1.503
20180228.1.503
ubuntu/ring<20190215.1.
20190215.1.
PJSIP PJSIP<=2.12
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
debian/asterisk<1:18.14.0~~rc1~dfsg+~cs6.12.40431414-1
1:18.14.0~~rc1~dfsg+~cs6.12.40431414-1
debian/ring<20230206.0~ds1-1
20230206.0~ds1-1
debian/asterisk
1:22.10.1+dfsg+~cs6.17.60671434-1
debian/ring
20230206.0~ds2-1.1+deb12u1
alpine/pjproject<2.12.1-r0
2.12.1-r0
alpine/pjproject<2.12.1-r0
2.12.1-r0
alpine/pjproject<2.12.1-r0
2.12.1-r0
alpine/pjproject<2.12.1-r0
2.12.1-r0
alpine/pjproject<2.12.1-r0
2.12.1-r0
alpine/pjproject<2.12.1-r0
2.12.1-r0
alpine/pjproject<2.12.1-r0
2.12.1-r0
alpine/pjproject<2.12.1-r0
2.12.1-r0
alpine/pjproject<2.12.1-r0
2.12.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/ring to a version that resolves this vulnerability.

    Fixed in 20180228.1.503
  2. Upgrade

    Upgrade ubuntu/ring to a version that resolves this vulnerability.

    Fixed in 20190215.1.
  3. Upgrade

    Upgrade debian/asterisk to a version that resolves this vulnerability.

    Fixed in 1:22.10.1+dfsg+~cs6.17.60671434-1
  4. Upgrade

    Upgrade debian/ring to a version that resolves this vulnerability.

    Fixed in 20230206.0~ds2-1.1+deb12u1
  5. Upgrade

    Upgrade alpine/pjproject to a version that resolves this vulnerability.

    Fixed in 2.12.1-r0
  6. Upgrade

    Upgrade debian/asterisk to a version that resolves this vulnerability.

    Fixed in 1:18.14.0~~rc1~dfsg+~cs6.12.40431414-1
  7. Upgrade

    Upgrade debian/ring to a version that resolves this vulnerability.

    Fixed in 20230206.0~ds1-1
  8. Configuration

    Disable DNS resolution in the PJSIP configuration by setting nameserver_count to zero.

    PJSIP nameserver_count = 0
  9. Compensating control

    Configure applications using PJSIP to use an external DNS resolver instead of PJSIP DNS resolution.

Event History

Apr 6, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-24793?

CVE-2022-24793 is a buffer overflow vulnerability in PJSIP DNS resolution that affects versions 2.12 and prior.

2

Which applications are affected by CVE-2022-24793?

Applications that use PJSIP DNS resolution are affected by CVE-2022-24793.

3

Does CVE-2022-24793 affect PJSIP users who utilize an external resolver?

No, PJSIP users who utilize an external resolver are not affected by CVE-2022-24793.

4

What is the severity of CVE-2022-24793?

CVE-2022-24793 has a severity rating of high (7.5).

5

How can I fix CVE-2022-24793?

To fix CVE-2022-24793, update to a version of PJSIP that is after 2.12.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203