CVE-2021-37706
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
5%
chance of exploitation in 30 days
CVSS base
7.3
HIGH
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.3 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-191
References
10 on the record
- github.com/pjsip/pjproject/security/advisories/GHSA-2qpg-f6wf-w984
reference
- github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865
reference
- seclists.org/fulldisclosure/2022/Mar/0
mailing-list
- packetstormsecurity.com/files/166225/Asterisk-Project-Security-Advisory-AST-2022-004.html
reference
- lists.debian.org/debian-lts-announce/2022/03/msg00035.html
mailing-list
- security.gentoo.org/glsa/202210-37
vendor-advisory
- lists.debian.org/debian-lts-announce/2022/11/msg00021.html
mailing-list
- www.debian.org/security/2022/dsa-5285
vendor-advisory
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2014-0497 Adobe Flash Player Integer Underflow VulnerablityCVSS 9.8 · CISA KEV
- CVE-2021-31956 Microsoft Windows NTFS Privilege Escalation VulnerabilityCVSS 9.3 · CISA KEV
- CVE-2022-0185 Linux Kernel Heap-Based Buffer Overflow VulnerabilityCVSS 8.4 · CISA KEV
- CVE-2026-122992 In G4KLX DStarGateway and F4FXL DStarGateway before 7b75de6, dstarCallsignToAPRS in APRSUtils.cpp has an integer underflow via an empty…CVSS 9.2
- CVE-2026-42980 NT OS Kernel Elevation of Privilege VulnerabilityCVSS 7.8
- CVE-2026-127072 Integer Underflow (Wrap or Wraparound) in CODESYS ControlCVSS 7.5
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.