CVE-2022-23537: PJSIP vulnerable to heap buffer overflow when decoding STUN message

Published Dec 20, 2022
·
Updated

PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. Buffer overread is possible when parsing a specially crafted STUN message with unknown attribute. The vulnerability affects applications that uses STUN including PJNATH and PJSUA-LIB. The patch is available as a commit in the master branch (2.13.1).

Affected Software

10 affected componentsFixes available
Teluu PJSIP<2.13.1
ubuntu/ring<20180228.1.503
20180228.1.503
ubuntu/ring<20190215.1.
20190215.1.
Debian Debian Linux=10.0
alpine/asterisk<18.20.2-r0
18.20.2-r0
alpine/asterisk<18.20.2-r0
18.20.2-r0
alpine/asterisk<18.20.2-r0
18.20.2-r0
debian/ring<20230206.0~ds1-1
20230206.0~ds1-1
debian/asterisk
1:16.28.0~dfsg-0+deb10u21:16.28.0~dfsg-0+deb11u21:20.4.0~dfsg+~cs6.13.40431414-1
debian/ring
20190215.1.f152c98~ds1-1+deb10u220210112.2.b757bac~ds1-1+deb11u120230206.0~ds1-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 alpine/asterisk to a version that resolves this vulnerability.

    Fixed in 18.20.2-r0
  4. Upgrade

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

    Fixed in 20230206.0~ds1-1
  5. Upgrade

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

    Fixed in 1:16.28.0~dfsg-0+deb10u2Fixed in 1:16.28.0~dfsg-0+deb11u2Fixed 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~ds1-1
  7. Upgrade

    Upgrade PJSIP to a version that resolves this vulnerability.

    Fixed in 2.13.1

Event History

Dec 20, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
12:00 AM
Affected Software
CVE Published
via MITRE·06:50 PM
Data Sourced
via MITRE·06:50 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·07:15 PM
DescriptionAffected Software
Aug 30, 2023
Data Sourced
01:15 AM
Weakness
Updated
via NVD·01:15 AM
Affected Software
Jan 25, 2024
Data Sourced
via NVD·09:02 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·09:02 PM
Affected Software
Nov 4, 2025
Updated
via NVD·04:15 PM
RemedyAffected Software
Nov 3, 2026
Data Sourced
via OSV·08:03 AM
Severity
Nov 17, 2026
Updated
via OSV·05:00 PM
Affected 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-23537?

CVE-2022-23537 is a vulnerability in the PJSIP library that allows buffer overread when parsing a specially crafted STUN message with unknown attribute.

2

Which software is affected by CVE-2022-23537?

Teluu Pjsip version up to 2.13.1, Asterisk version up to 1:16.28.0~dfsg-0+deb10u3, 1:16.28.0~dfsg-0+deb11u2, 1:16.28.0~dfsg-0+deb11u3, and 1:20.4.0~dfsg+~cs6.13.40431414-2, and Ring version up to 20190215.1.f152c98~ds1-1+deb10u2, 20230206.0~ds2-1.1, and 20230206.0~ds2-1.3 are affected by CVE-2022-23537.

3

What is the severity of CVE-2022-23537?

CVE-2022-23537 has a severity rating of 9.8 (Critical).

4

How can I fix CVE-2022-23537 in Teluu Pjsip?

To fix CVE-2022-23537 in Teluu Pjsip, update to version 2.13.2 or later.

5

How can I fix CVE-2022-23537 in Asterisk?

To fix CVE-2022-23537 in Asterisk, update to version 1:16.2.1~dfsg-1+deb10u2 or later, 1:16.28.0~dfsg-0+deb11u2 or later, 1:16.28.0~dfsg-0+deb11u3 or later, or 1:20.4.0~dfsg+~cs6.13.40431414-3 or later.

6

How can I fix CVE-2022-23537 in Ring?

To fix CVE-2022-23537 in Ring, update to version 20190215.1.f152c98~ds1-1+deb10u3 or later, 20230206.0~ds2-1.2 or later, or 20230206.0~ds2-1.4 or later.

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