Heap-based buffer overflow in pjsip - CVE-2022-23537

 

Heap-based buffer overflow in pjsip - CVE-2022-23537

Published: December 20, 2022 / Updated: July 15, 2023


Vulnerability identifier: #VU70432
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-23537
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when decoding STUN messages. A remote attacker can pass a specially crafted STUN message to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

pjsip
Debian Linux
Ubuntu
ring (Ubuntu package)
ring-daemon (Ubuntu package)
asterisk (Debian package)
jami (Ubuntu package)
jami-daemon (Ubuntu package)

How to mitigate CVE-2022-23537

Install update from vendor's website.

pjsip - update to 2.13.1
ring (Ubuntu package) - addressed in versions Ubuntu Pro, 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1
ring-daemon (Ubuntu package) - addressed in versions Ubuntu Pro, 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1
asterisk (Debian package) - update to 1:16.28.0~dfsg-0+deb11u2
jami (Ubuntu package) - addressed in versions 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1, 20230206.0~ds1-5ubuntu0.1, 20230206.0~ds2-1.3ubuntu0.1
jami-daemon (Ubuntu package) - addressed in versions 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1, 20230206.0~ds1-5ubuntu0.1, 20230206.0~ds2-1.3ubuntu0.1

External References

Related Security Bulletins