{"api_version":"1","generated_at":"2026-04-23T08:41:28+00:00","cve":"CVE-2022-31031","urls":{"html":"https://cve.report/CVE-2022-31031","api":"https://cve.report/api/cve/CVE-2022-31031.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31031","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31031"},"summary":{"title":"CVE-2022-31031","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-06-09 16:15:00","updated_at":"2023-08-30 01:15:00"},"problem_types":["CWE-120"],"metrics":[],"references":[{"url":"https://www.debian.org/security/2023/dsa-5358","name":"DSA-5358","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5358-1 asterisk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202210-37","name":"GLSA-202210-37","refsource":"GENTOO","tags":[],"title":"PJSIP: Multiple Vulnerabilities (GLSA 202210-37) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html","name":"[debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3549-1] ring security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00029.html","name":"[debian-lts-announce] 20230222 [SECURITY] [DLA 3335-1] asterisk security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3335-1] asterisk security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj","name":"https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj","refsource":"CONFIRM","tags":[],"title":"Potential stack buffer overflow when parsing message as a STUN client · Advisory · pjsip/pjproject · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202","name":"https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-26j7-ww69-c4qj · pjsip/pjproject@450baca · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31031","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31031","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31031","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31031","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"11.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"31031","vulnerable":"1","versionEndIncluding":"2.12.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"teluu","cpe5":"pjsip","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-31031","qid":"181602","title":"Debian Security Update for asterisk (DLA 3335-1)"},{"cve":"CVE-2022-31031","qid":"181679","title":"Debian Security Update for asterisk (DSA 5358-1)"},{"cve":"CVE-2022-31031","qid":"184224","title":"Debian Security Update for ring (CVE-2022-31031)"},{"cve":"CVE-2022-31031","qid":"199817","title":"Ubuntu Security Notification for Ring Vulnerabilities (USN-6422-1)"},{"cve":"CVE-2022-31031","qid":"503125","title":"Alpine Linux Security Update for pjproject"},{"cve":"CVE-2022-31031","qid":"505917","title":"Alpine Linux Security Update for pjproject"},{"cve":"CVE-2022-31031","qid":"6000045","title":"Debian Security Update for ring (DLA 3549-1)"},{"cve":"CVE-2022-31031","qid":"710674","title":"Gentoo Linux PJSIP Multiple Vulnerabilities (GLSA 202210-37)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31031","STATE":"PUBLIC","TITLE":"Potential stack buffer overflow when parsing message as a STUN client"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"pjproject","version":{"version_data":[{"version_value":"<= 2.12.1"}]}}]},"vendor_name":"pjsip"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')"}]}]},"references":{"reference_data":[{"name":"https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj","refsource":"CONFIRM","url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj"},{"name":"https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202","refsource":"MISC","url":"https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202"},{"refsource":"GENTOO","name":"GLSA-202210-37","url":"https://security.gentoo.org/glsa/202210-37"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230222 [SECURITY] [DLA 3335-1] asterisk security update","url":"https://lists.debian.org/debian-lts-announce/2023/02/msg00029.html"},{"refsource":"DEBIAN","name":"DSA-5358","url":"https://www.debian.org/security/2023/dsa-5358"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update","url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html"}]},"source":{"advisory":"GHSA-26j7-ww69-c4qj","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-06-09 16:15:00","lastModifiedDate":"2023-08-30 01:15:00","problem_types":["CWE-120"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:teluu:pjsip:*:*:*:*:*:*:*:*","versionEndIncluding":"2.12.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}