VDB

CVE-2021-37706

CVE-2021-37706 PUBLISHED CVSS 7.3 HIGH

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

CVSS 3.1
7.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Affected products

VendorProductVersions
pjsippjproject<= 2.11.1
pjsippjproject0
alpinepjproject0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›