CVE-2021-37706Potential integer underflow upon receiving STUN message in PJSIP
- 7.3HighCVSS base score
- 4.9%Exploitation in 30 daysEPSS · top 7.7% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 5 months later
· 5 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.9% · top 7.7% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.3.
Affected products
References
References10
- https://github.com/pjsip/pjproject/security/advisories/GHSA-2qpg-f6wf-w984 (opens in a new tab)x_transferred
- https://github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865 (opens in a new tab)x_transferred
- 20220304 AST-2022-004: pjproject: integer underflow on STUN message (opens in a new tab)mailing-listx_transferred
- http://packetstormsecurity.com/files/166225/Asterisk-Project-Security-Advisory-AST-2022-004.html (opens in a new tab)x_transferred
- [debian-lts-announce] 20220328 [SECURITY] [DLA 2962-1] pjproject security update (opens in a new tab)mailing-listx_transferred
- GLSA-202210-37 (opens in a new tab)vendor-advisoryx_transferred
- [debian-lts-announce] 20221117 [SECURITY] [DLA 3194-1] asterisk security update (opens in a new tab)mailing-listx_transferred
- DSA-5285 (opens in a new tab)vendor-advisoryx_transferred
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update (opens in a new tab)mailing-listx_transferred
- https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-24195 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-37706)Record last updated .