CVE-2022-23547: Heap buffer overflow in pjproject when decoding STUN message

Published Dec 23, 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. This issue is similar to GHSA-9pfh-r8x4-w26w. Possible buffer overread when parsing a certain STUN message. The vulnerability affects applications that uses STUN including PJNATH and PJSUA-LIB. The patch is available as commit in the master branch.

Affected Software

10 affected componentsFixes available
ubuntu/ring<20180228.1.503
20180228.1.503
ubuntu/ring<20190215.1.
20190215.1.
PJSIP PJSIP<2.13.1
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
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 debian/ring to a version that resolves this vulnerability.

    Fixed in 20230206.0~ds1-1
  4. 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
  5. 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
  6. Upgrade

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

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

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

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

Event History

Dec 23, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·03: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·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:15 PM
RemedyAffected Software
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-23547?

CVE-2022-23547 is a vulnerability in the PJSIP multimedia communication library that allows for possible buffer overread when parsing a certain STUN message.

2

How does CVE-2022-23547 impact PJSIP and Ubuntu Ring?

CVE-2022-23547 affects PJSIP versions up to 2.13.1, as well as Ubuntu Ring versions 20180228.1.503 and 20190215.1.

3

What is the severity of CVE-2022-23547?

CVE-2022-23547 has a severity rating of 9.8 (critical).

4

How do I fix CVE-2022-23547 in PJSIP?

To fix CVE-2022-23547 in PJSIP, upgrade to a version higher than 2.13.1.

5

How do I fix CVE-2022-23547 in Ubuntu Ring?

To fix CVE-2022-23547 in Ubuntu Ring, update to a version higher than 20180228.1.503 or 20190215.1, depending on the specific package.

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