Critical severity · published Dec 22, 2021
CVE-2021-37706
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
9.8
CVSS
4.9%
EPSS
No
On KEV
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 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)4.9% · higher than 92% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AS
Asterisk · Sangoma
16.0.0 before 16.24.1; 18.0.0 before 18.10.1; 19.0.0 before 19.2.1 · source: NVD
CA
Certified Asterisk · Asterisk
before 16.8.0; 16.8.0; 16.8.0; 16.8.0; 16.8.0; 16.8.0; +8 more · source: NVD
DL
Debian Linux · Debian
9.0; 10.0 · source: NVD
PJ
Pjsip · Teluu
through 2.11.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-37706
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-37706
Third Party Advisory
http://packetstormsecurity.com/files/166225/Asterisk-Project-Security-Advisory-AST-2022-004.html
Mailing List
http://seclists.org/fulldisclosure/2022/Mar/0
Patch
https://github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865
Patch
https://github.com/pjsip/pjproject/security/advisories/GHSA-2qpg-f6wf-w984
Mailing List
https://lists.debian.org/debian-lts-announce/2022/03/msg00035.html
Mailing List
https://lists.debian.org/debian-lts-announce/2022/11/msg00021.html
More from Certified Asterisk
9.8
CVE-2022-23608
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
9.1
CVE-2022-21723
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
8.8
CVE-2024-42365
Asterisk is an open source private branch exchange (PBX) and telephony toolkit
8.2
CVE-2026-57191
Asterisk: Stack buffer overflow in MWI NOTIFY Message-Account parsing
8.1
CVE-2026-57202
Asterisk: ARI setChannelVar bypasses live_dangerously and permits FILE() writes
