CVE-2023-27585: Buffer Overflow

Published Mar 14, 2023
·
Updated

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

12 affected componentsFixes available
Teluu PJSIP<2.13
ubuntu/ring<20180228.1.503
20180228.1.503
ubuntu/ring<20190215.1.
20190215.1.
ubuntu/ring<20230206.0~
20230206.0~
ubuntu/ring<20230206.0~
20230206.0~
debian/ring<20230206.0~ds2-1.1+deb12u1
20230206.0~ds2-1.1+deb12u1
debian/asterisk
1:16.28.0~dfsg-0+deb10u31:16.28.0~dfsg-0+deb11u31:20.4.0~dfsg+~cs6.13.40431414-1
debian/ring
20190215.1.f152c98~ds1-1+deb10u220210112.2.b757bac~ds1-1+deb11u120230206.0~ds2-1.1+deb12u120230922.0~ds1-1
ubuntu/pjproject*
ubuntu/pjproject*
ubuntu/ring<20180228.1.503da2b~ds1-1ubuntu0.1~esm1
20180228.1.503da2b~ds1-1ubuntu0.1~esm1
ubuntu/ring<20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1
20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1

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 ubuntu/ring to a version that resolves this vulnerability.

    Fixed in 20230206.0~
  4. Upgrade

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

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

    Upgrade debian/asterisk to 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
  6. Upgrade

    Upgrade debian/ring to 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
  7. Upgrade

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

    Fixed in 20180228.1.503da2b~ds1-1ubuntu0.1~esm1
  8. Upgrade

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

    Fixed in 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1
  9. Upgrade

    Upgrade PJSIP to a version that resolves this vulnerability.

    Patch d1c5e4d
  10. Configuration

    Set nameserver_count to zero in the PJSIP configuration to disable DNS resolution

    PJSIP DNS resolver nameserver_count = 0

Event History

Mar 14, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·05:15 PM
DescriptionSeverityAffected Software
Aug 30, 2023
Data Sourced
01:15 AM
Weakness
Updated
via NVD·01:15 AM
Affected Software
Nov 4, 2025
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 17, 2026
Updated
via NVD·05:45 AM
RemedyAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2023-27585?

CVE-2023-27585 is a buffer overflow vulnerability in PJSIP DNS resolver affecting versions 2.13 and prior.

2

Who is affected by CVE-2023-27585?

Applications that use PJSIP DNS resolver version 2.13 and prior are affected by CVE-2023-27585.

3

How severe is CVE-2023-27585?

CVE-2023-27585 has a severity rating of 7.5 (high).

4

How can I fix CVE-2023-27585?

Updating to a version of PJSIP that is not affected by CVE-2023-27585 is recommended.

5

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].

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