Home / pjsip / pjproject / CVE-2022-31031
CVE-2022-31031: is it exploited, and which versions of pjsip pjproject are affected and fixed?
CVE-2022-31031 is a buffer overflow vulnerability in pjsip pjproject. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: pjproject <= 2.12.1 (CVE record by GitHub_M). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Critical (9.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:48 UTC.
What is CVE-2022-31031?
Potential stack buffer overflow when parsing message as a STUN client
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.
From the CVE record by GitHub_M, last updated November 4, 2025, 16:09 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pjsip | pjproject | <= 2.12.1 |
As the CVE record by GitHub_M states it, last updated November 4, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| teluu | pjsip | through 2.12.1 | application |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:44 UTC.
How severe is CVE-2022-31031?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-31031 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, April 23, 2025)
- EPSS
- 2.07% probability of exploitation activity in the next 30 days, percentile 82.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/pjsip/pjproject/security/advisories/GHSA-26j7-ww69-c4qj
- https://github.com/pjsip/pjproject/commit/450baca94f475345542c6953832650c390889202
- GLSA-202210-37 vendor-advisory
- [debian-lts-announce] 20230222 [SECURITY] [DLA 3335-1] asterisk security update mailing-list
- DSA-5358 vendor-advisory
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update mailing-list
- https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html
When was it published, and where is the official record?
- Reserved
- May 18, 2022
- Published
- June 7, 2022, 00:00 UTC
- CVE record updated
- November 4, 2025, 16:09 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:44 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:48 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect pjproject?
- Sep 18, 2026CVE-2026-84975 pjsip pjproject: improper certificate validation
- Sep 18, 2026CVE-2026-77396 pjsip pjproject: heap buffer overflow
- Sep 4, 2026CVE-2026-57166 pjsip pjproject: stack buffer overflow
- Sep 4, 2026CVE-2026-57165 pjsip pjproject: stack buffer overflow
- Sep 4, 2026CVE-2026-57164 pjsip pjproject: heap buffer overflow
- Sep 4, 2026CVE-2026-57163 pjsip pjproject: stack buffer overflow
- Sep 4, 2026CVE-2026-57162 pjsip pjproject: stack buffer overflow
- Sep 4, 2026CVE-2026-57161 pjsip pjproject: stack buffer overflow
Questions about CVE-2022-31031
Is CVE-2022-31031 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 2.07% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pjsip pjproject are affected by CVE-2022-31031?
pjproject <= 2.12.1, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2022-31031?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2022-31031?
Critical (9.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-31031?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.