CVE-2022-31031
published critical CVSS 3.1 · 9.8Potential stack buffer overflow when parsing message as a STUN client
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pjsip | — | pjproject<= 2.12.1 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | pjproject | Fixed | 2.13-r0 | Package fix record |
| Debian | bullseye | asterisk | Advisory build | 1:16.28.0~dfsg-0+deb11u2 | DSA-5358-1 |
| Ubuntu | bionic | ring | Advisory build | 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 | USN-6422-1 |
| Alpine Linux | v3.18 | pjproject | Fixed | 2.13-r0 | Package fix record |
| Alpine Linux | v3.19 | pjproject | Fixed | 2.13-r0 | Package fix record |
| Alpine Linux | v3.20 | pjproject | Fixed | 2.13-r0 | Package fix record |
| Alpine Linux | v3.21 | pjproject | Fixed | 2.13-r0 | Package fix record |
Show 11 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.22 | pjproject | Fixed | 2.13-r0 | Package fix record |
| Alpine Linux | v3.23 | pjproject | Fixed | 2.13-r0 | Package fix record |
| Alpine Linux | v3.24 | pjproject | Fixed | 2.13-r0 | Package fix record |
| Debian | bullseye | ring | Advisory build | 20210112.2.b757bac~ds1-1+deb11u1 | DLA-3887-1 |
| Debian | buster | asterisk | Advisory build | 1:16.28.0~dfsg-0+deb10u2 | DLA-3335-1 |
| Debian | buster | ring | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2 | DLA-3549-1 |
| Ubuntu | bionic | ring-daemon | Advisory build | 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 | USN-6422-1 |
| Ubuntu | focal | jami | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | USN-6422-1 |
| Ubuntu | focal | jami-daemon | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | USN-6422-1 |
| Ubuntu | focal | ring | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | USN-6422-1 |
| Ubuntu | focal | ring-daemon | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | USN-6422-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. 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pjsip | pjproject | <= 2.12.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-120 CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
7- https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202
- https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj
- [debian-lts-announce] 20230222 [SECURITY] [DLA 3335-1] asterisk security update https://lists.debian.org/debian-lts-announce/2023/02/msg00029.html
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html
- GLSA-202210-37 https://security.gentoo.org/glsa/202210-37
- DSA-5358 https://www.debian.org/security/2023/dsa-5358
Provider assertions
3GitHub_M · cna
Potential stack buffer overflow when parsing message as a STUN client
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b1193585264b84b44807d31be94e4dcedd863d6b388788ea52c5a9da59442abb
- Ingested
- 23 Sep 2026, 08:00:25 UTC
- Source record
- Official CVE record