Skip to content
OpenAdvisories
Medium · 6.5 CVE-2022-23537 EUVD-2022-28560

PJSIP vulnerable to heap buffer overflow when decoding STUN message

Published Dec 20, 2022 · Updated Nov 4, 2025 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
pjsip pjproject <= 2.13 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 asterisk 1:20.4.0~dfsg+~cs6.13.40431414-1 —
Debian 12 ring 20230206.0~ds1-1 —
Debian 11 asterisk 1:16.28.0~dfsg-0+deb11u2 DSA-5358-1
Debian 11 ring 20210112.2.b757bac~ds1-1+deb11u1 DLA-3887-1
Debian 10 asterisk 1:16.28.0~dfsg-0+deb10u2 DLA-3335-1
Debian 10 ring 20190215.1.f152c98~ds1-1+deb10u2 DLA-3549-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 asterisk No fix yet —
Ubuntu 26.04 LTS asterisk No fix yet —
Ubuntu 25.10 asterisk No fix yet —
Ubuntu 24.04 LTS asterisk No fix yet —
Ubuntu 22.04 LTS asterisk No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS ring 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 USN-6422-1
Ubuntu Pro 18.04 LTS pjproject No fix yet —
Ubuntu Pro 18.04 LTS ring 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 USN-6422-1
Ubuntu Pro 16.04 LTS asterisk +1 No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.18 asterisk 18.20.2-r0 —
Alpine v3.17 asterisk 18.20.2-r0 —
Alpine v3.16 asterisk 18.20.2-r0 —

Advisories 6

References