9.8critical
Potential stack buffer overflow when parsing message as a STUN client
- Severity
- 9.8critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 2.07% (higher than 81% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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. 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
| Product or package | Versions | Reported by |
|---|---|---|
| pjsip pjproject | <= 2.12.1 | CVE List |
| teluu pjsip | up to 2.12.1 | NVD |
| debian debian_linux | 10.0, 11.0 | NVD |
All scores
| GitHub_M | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
PJSIP es una librería de comunicación multimedia gratuita y de código abierto escrita en lenguaje C que implementa protocolos basados en estándares como SIP, SDP, RTP, STUN, TURN e ICE. En las versiones anteriores a 2.12.1, inclusive, una vulnerabilidad de desbordamiento del búfer de la pila afecta a usuarios de PJSIP que usan STUN en sus aplicaciones, ya sea: estableciendo un servidor STUN en su cuenta/configuración de medios en el nivel PJSUA/PJSUA2, o usando directamente la API "pjlib-util/stun_simple". Se presenta un parche disponible en el commit 450baca que debería incluirse en la próxima versión. No se presentan mitigaciones conocidas para este problema
References
| https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj | patch, third-party-advisory | |
| https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202 | patch, third-party-advisory | |
| https://security.gentoo.org/glsa/202210-37 | third-party-advisory, vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/02/msg00029.html | mailing-list | |
| https://www.debian.org/security/2023/dsa-5358 | third-party-advisory, vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html | mailing-list | |
| https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31031 changed 2025-11-04 | CVE Terms of Use |
| NVD | CVE-2022-31031 changed 2026-06-17 | Public domain |