Vulnerability · Published Jun 7, 2022 · Assigned by GitHub_M

CVE-2022-31031Potential stack buffer overflow when parsing message as a STUN client

Critical 9.8

In plain English

A critical-severity buffer overflow in pjproject from pjsip. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)2.1%top 18.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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. In versions prior to and including 2.12.1 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. A patch is available in commit 450baca which should be included in the next release. There are no known workarounds for this issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20pjproject2.13-r0ALPINE-CVE-2022-31031
Alpine:v3.21pjproject2.13-r0ALPINE-CVE-2022-31031
Alpine:v3.22pjproject2.13-r0ALPINE-CVE-2022-31031
Alpine:v3.23pjproject2.13-r0ALPINE-CVE-2022-31031
Alpine:v3.24pjproject2.13-r0ALPINE-CVE-2022-31031
Debian:14asterisk1:20.0.1~dfsg+~cs6.12.40431414-1DEBIAN-CVE-2022-31031
Debian:12ring20230206.0~ds1-1DEBIAN-CVE-2022-31031

Affected products (as reported)

VendorProductVersions
pjsip pjproject <= 2.12.1

Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References