CVE-2021-37706
Potential integer underflow upon receiving STUN message in PJSIP
Reported by github_m · Published December 22, 2021
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pjsip | pjproject | <= 2.11.1 |
| pjsip | pjproject | 0 |
| alpine | pjproject | 0 |
Timeline
- Dec 22, 2021 CVE Published
- Dec 23, 2021 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 10, 2026 Security Advisory (3 in total, the first dated here)
- Mar 24, 2026 CVE Updated
- Jul 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-37706
vulnetix vdb fixes CVE-2021-37706
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-37706/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 20220304 AST-2022-004: pjproject: integer underflow on STUN message mailing-list
- [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 url