{"id":"CVE-2022-31031","published":"2022-06-07T00:00:00Z","modified":"2025-11-04T16:09:46Z","title":"Potential stack buffer overflow when parsing message as a STUN client","vendor":"pjsip","product":"pjproject","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02068,"percentile":0.81875,"provenance":"source"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj","tags":[]},{"url":"https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202","tags":[]},{"url":"https://security.gentoo.org/glsa/202210-37","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00029.html","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2023/dsa-5358","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html","tags":[]}],"priority":{"score":23.2,"factors":[{"name":"EPSS percentile","points":16.38},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"pjsip","affectedVersions":[{"vendor":"pjsip","product":"pjproject","versions":["<= 2.12.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-23T15:49:22.770361Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-52723","exploited":false,"provenance":"source"}}