{"id":"CVE-2022-31031","aliases":["CVE-2022-31031"],"related":[],"kind":"vulnerability","state":"published","title":"Potential stack buffer overflow when parsing message as a STUN client","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-06-07T00:00:00.000Z","modified":"2026-06-17T04:44:38.713Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-120","CWE-787"],"affected":[{"ranges":[{"version":"<= 2.12.1","status":"affected"}],"vendor":"pjsip","product":"pjproject","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.12.1"}],"vendor":"teluu","product":"pjsip","cpe":"cpe:2.3:a:teluu:pjsip:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202210-37","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00029.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2023/dsa-5358","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-04-23T15:49:22.770Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31031","url":"https://www.cve.org/CVERecord?id=CVE-2022-31031","licence":"CVE Terms of Use","modified":"2025-11-04T16:09:46.351Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31031","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31031","licence":"Public domain","modified":"2026-06-17T04:44:38.713Z"}],"updatedAt":"2026-11-25T22:58:12.192Z","epss":{"score":0.02068,"percentile":0.81954,"date":"2026-12-01T12:00:22.000Z"}}