PT-2022-20474 · Pjsip+3 · Pjsip+3

Cossack9989

·

Published

2022-06-07

·

Updated

2026-05-05

·

CVE-2022-31031

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions PJSIP versions prior to and including 2.12.1
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. A stack buffer overflow vulnerability affects PJSIP users that use STUN in their applications, either by setting a STUN server in their account/media config in PJSUA/PJSUA2 level, or directly using pjlib-util/stun simple API.
Recommendations For versions prior to and including 2.12.1, apply the patch available in commit 450baca to resolve the issue. As a temporary workaround, consider disabling the use of STUN in applications until the patch is applied. Restrict access to the pjlib-util/stun simple API to minimize the risk of exploitation. Avoid setting a STUN server in account/media config in PJSUA/PJSUA2 level until the issue is resolved.

Exploit

Fix

Buffer Overflow

Memory Corruption

Weakness Enumeration

Related Identifiers

ALT-PU-2024-15954
ALT-PU-2024-16030
CVE-2022-31031
DLA-3335-1
DLA-3549-1
DLA-3887-1
DSA-5358-1
GHSA-26J7-WW69-C4QJ
USN-6422-1

Affected Products

Alt Linux
Linuxmint
Pjsip
Ubuntu