{"id":"ALPINE-CVE-2022-31031","details":"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.","modified":"2025-12-03T22:50:20.574057Z","published":"2022-06-09T16:15:08.917Z","upstream":["CVE-2022-31031"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-31031"}],"affected":[{"package":{"name":"pjproject","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/pjproject?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13-r0"}]}],"versions":["1.0.1-r0","1.10-r0","1.4-r0","1.4-r1","1.6-r0","1.6-r1","1.6-r2","2.0-r0","2.1-r0","2.11-r0","2.11.1-r0","2.11.1-r1","2.11.1-r2","2.12-r0","2.12.1-r0","2.12.1-r1","2.12.1-r2","2.12.1-r3","2.2-r0","2.2.1-r0","2.3-r0","2.4-r0","2.4.5-r0","2.5.5-r0","2.5.5-r1","2.5.5-r2","2.5.5-r3","2.5.5-r4","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.8-r0","2.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-31031.json"}},{"package":{"name":"pjproject","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/pjproject?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13-r0"}]}],"versions":["1.0.1-r0","1.10-r0","1.4-r0","1.4-r1","1.6-r0","1.6-r1","1.6-r2","2.0-r0","2.1-r0","2.11-r0","2.11.1-r0","2.11.1-r1","2.11.1-r2","2.12-r0","2.12.1-r0","2.12.1-r1","2.12.1-r2","2.12.1-r3","2.2-r0","2.2.1-r0","2.3-r0","2.4-r0","2.4.5-r0","2.5.5-r0","2.5.5-r1","2.5.5-r2","2.5.5-r3","2.5.5-r4","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.8-r0","2.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-31031.json"}},{"package":{"name":"pjproject","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/pjproject?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13-r0"}]}],"versions":["1.0.1-r0","1.10-r0","1.4-r0","1.4-r1","1.6-r0","1.6-r1","1.6-r2","2.0-r0","2.1-r0","2.11-r0","2.11.1-r0","2.11.1-r1","2.11.1-r2","2.12-r0","2.12.1-r0","2.12.1-r1","2.12.1-r2","2.12.1-r3","2.2-r0","2.2.1-r0","2.3-r0","2.4-r0","2.4.5-r0","2.5.5-r0","2.5.5-r1","2.5.5-r2","2.5.5-r3","2.5.5-r4","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.8-r0","2.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-31031.json"}},{"package":{"name":"pjproject","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/pjproject?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13-r0"}]}],"versions":["1.0.1-r0","1.10-r0","1.4-r0","1.4-r1","1.6-r0","1.6-r1","1.6-r2","2.0-r0","2.1-r0","2.11-r0","2.11.1-r0","2.11.1-r1","2.11.1-r2","2.12-r0","2.12.1-r0","2.12.1-r1","2.12.1-r2","2.12.1-r3","2.2-r0","2.2.1-r0","2.3-r0","2.4-r0","2.4.5-r0","2.5.5-r0","2.5.5-r1","2.5.5-r2","2.5.5-r3","2.5.5-r4","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.8-r0","2.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-31031.json"}},{"package":{"name":"pjproject","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/pjproject?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13-r0"}]}],"versions":["1.0.1-r0","1.10-r0","1.4-r0","1.4-r1","1.6-r0","1.6-r1","1.6-r2","2.0-r0","2.1-r0","2.11-r0","2.11.1-r0","2.11.1-r1","2.11.1-r2","2.12-r0","2.12.1-r0","2.12.1-r1","2.12.1-r2","2.12.1-r3","2.2-r0","2.2.1-r0","2.3-r0","2.4-r0","2.4.5-r0","2.5.5-r0","2.5.5-r1","2.5.5-r2","2.5.5-r3","2.5.5-r4","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.8-r0","2.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-31031.json"}},{"package":{"name":"pjproject","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/pjproject?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13-r0"}]}],"versions":["1.0.1-r0","1.10-r0","1.4-r0","1.4-r1","1.6-r0","1.6-r1","1.6-r2","2.0-r0","2.1-r0","2.11-r0","2.11.1-r0","2.11.1-r1","2.11.1-r2","2.12-r0","2.12.1-r0","2.12.1-r1","2.12.1-r2","2.12.1-r3","2.2-r0","2.2.1-r0","2.3-r0","2.4-r0","2.4.5-r0","2.5.5-r0","2.5.5-r1","2.5.5-r2","2.5.5-r3","2.5.5-r4","2.7.2-r0","2.7.2-r1","2.7.2-r2","2.7.2-r3","2.7.2-r4","2.8-r0","2.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-31031.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}