Home / pjsip / pjproject / CVE-2021-37706
CVE-2021-37706: is it exploited, and which versions of pjsip pjproject are affected and fixed?
CVE-2021-37706 is an integer underflow 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, 16:09 UTC). Affected: pjproject <= 2.11.1 (CVE record by GitHub_M). Fixed in 16.8.0, 16.24.1, 18.10.1 and 19.2.1 (NVD). Severity: High (7.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:52 UTC.
What is CVE-2021-37706?
Potential integer underflow upon receiving STUN message in PJSIP
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 affected versions if the incoming STUN message contains an ERROR-CODE attribute, the header length is not checked before performing a subtraction operation, potentially resulting in an integer underflow scenario. This issue affects all users that use STUN. A malicious actor located within the victim’s network may forge and send a specially crafted UDP (STUN) message that could remotely execute arbitrary code on the victim’s machine. Users are advised to upgrade as soon as possible. There are no known workarounds.
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.11.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.11.1 | application |
| asterisk | certified asterisk | before 16.8.0 | application |
| asterisk | certified asterisk | 16.8.0 | application |
| sangoma | asterisk | from 16.0.0 before 16.24.1 | application |
| sangoma | asterisk | from 18.0.0 before 18.10.1 | application |
| sangoma | asterisk | from 19.0.0 before 19.2.1 | application |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:01 UTC.
How severe is CVE-2021-37706?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | 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 |
| High 9.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:C/I:C/A:C | 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-2021-37706 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.92% probability of exploitation activity in the next 30 days, percentile 92.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-191 Integer Underflow (Wrap or Wraparound)
Where are the vendor advisories and references?
- https://github.com/pjsip/pjproject/security/advisories/GHSA-2qpg-f6wf-w984
- https://github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865
- 20220304 AST-2022-004: pjproject: integer underflow on STUN message mailing-list
- http://packetstormsecurity.com/files/166225/Asterisk-Project-Security-Advisory-AST-2022-004.html
- [debian-lts-announce] 20220328 [SECURITY] [DLA 2962-1] pjproject security update mailing-list
- GLSA-202210-37 vendor-advisory
- [debian-lts-announce] 20221117 [SECURITY] [DLA 3194-1] asterisk security update mailing-list
- DSA-5285 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
- July 29, 2021
- Published
- December 22, 2021, 00:00 UTC
- CVE record updated
- November 4, 2025, 16:09 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:01 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:52 UTC; KEV December 3, 2026, 16:09 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-2021-37706
Is CVE-2021-37706 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 4.92% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pjsip pjproject are affected by CVE-2021-37706?
pjproject <= 2.11.1, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2021-37706?
16.8.0, 16.24.1, 18.10.1 and 19.2.1, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-37706?
High (7.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2021-37706?
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.