CVE-2021-37706
published high CVSS 3.1 · 7.3Potential integer underflow upon receiving STUN message in PJSIP
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pjsip | — | pjproject<= 2.11.1 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | pjproject | Fixed | 2.12-r0 | Package fix record |
| Debian | stretch | pjproject | Advisory build | 2.5.5~dfsg-6+deb9u3 | DLA-2962-1 |
| Ubuntu | bionic | pjproject | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Alpine Linux | v3.16 | pjproject | Fixed | 2.12-r0 | Package fix record |
| Alpine Linux | v3.17 | pjproject | Fixed | 2.12-r0 | Package fix record |
| Alpine Linux | v3.18 | pjproject | Fixed | 2.12-r0 | Package fix record |
| Alpine Linux | v3.19 | pjproject | Fixed | 2.12-r0 | Package fix record |
Show 45 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.20 | pjproject | Fixed | 2.12-r0 | Package fix record |
| Alpine Linux | v3.21 | pjproject | Fixed | 2.12-r0 | Package fix record |
| Alpine Linux | v3.22 | pjproject | Fixed | 2.12-r0 | Package fix record |
| Alpine Linux | v3.23 | pjproject | Fixed | 2.12-r0 | Package fix record |
| Alpine Linux | v3.24 | pjproject | Fixed | 2.12-r0 | Package fix record |
| Ubuntu | xenial | pjproject | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Debian | bullseye | asterisk | Advisory build | 1:16.28.0~dfsg-0+deb11u1 | DSA-5285-1 |
| Debian | bullseye | ring | Advisory build | 20210112.2.b757bac~ds1-1+deb11u1 | DLA-3887-1 |
| Debian | buster | asterisk | Advisory build | 1:16.28.0~dfsg-0+deb10u1 | DLA-3194-1 |
| Debian | buster | ring | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2 | DLA-3549-1 |
| Ubuntu | bionic | libpj2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjlib-util2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjmedia-audiodev2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjmedia-codec2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjmedia-videodev2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjmedia2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjnath2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjsip-simple2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjsip-ua2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjsip2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjsua2 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | libpjsua2-2v5 | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | python-pjproject | Advisory build | 2.7.2~dfsg-1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | bionic | ring | Advisory build | 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 | USN-6422-1 |
| Ubuntu | bionic | ring-daemon | Advisory build | 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 | USN-6422-1 |
| Ubuntu | focal | jami | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | USN-6422-1 |
| Ubuntu | focal | jami-daemon | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | USN-6422-1 |
| Ubuntu | focal | ring | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | USN-6422-1 |
| Ubuntu | focal | ring-daemon | Advisory build | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | USN-6422-1 |
| Ubuntu | mantic | jami | Advisory build | 20230206.0~ds2-1.3ubuntu0.1 | USN-6422-2 |
| Ubuntu | mantic | jami-daemon | Advisory build | 20230206.0~ds2-1.3ubuntu0.1 | USN-6422-2 |
| Ubuntu | mantic | jami-daemon-dbgsym | Advisory build | 20230206.0~ds2-1.3ubuntu0.1 | USN-6422-2 |
| Ubuntu | mantic | jami-dbgsym | Advisory build | 20230206.0~ds2-1.3ubuntu0.1 | USN-6422-2 |
| Ubuntu | mantic | ring | Advisory build | 20230206.0~ds2-1.3ubuntu0.1 | USN-6422-2 |
| Ubuntu | xenial | libpj2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjlib-util2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjmedia-audiodev2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjmedia-codec2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjmedia-videodev2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjmedia2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjnath2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjsip-simple2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjsip-ua2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjsip2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
| Ubuntu | xenial | libpjsua2 | Advisory build | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | USN-8122-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pjsip | pjproject | <= 2.11.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-191 CWE-191: Integer Underflow (Wrap or Wraparound)
References
10- http://packetstormsecurity.com/files/166225/Asterisk-Project-Security-Advisory-AST-2022-004.html
- 20220304 AST-2022-004: pjproject: integer underflow on STUN message http://seclists.org/fulldisclosure/2022/Mar/0
- https://github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865
- https://github.com/pjsip/pjproject/security/advisories/GHSA-2qpg-f6wf-w984
- [debian-lts-announce] 20220328 [SECURITY] [DLA 2962-1] pjproject security update https://lists.debian.org/debian-lts-announce/2022/03/msg00035.html
- [debian-lts-announce] 20221117 [SECURITY] [DLA 3194-1] asterisk security update https://lists.debian.org/debian-lts-announce/2022/11/msg00021.html
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html
- GLSA-202210-37 https://security.gentoo.org/glsa/202210-37
- DSA-5285 https://www.debian.org/security/2022/dsa-5285
Provider assertions
2GitHub_M · cna
Potential integer underflow upon receiving STUN message in PJSIP
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4d622c892b5ceceeed3faab533c04deee494de7fe18bc994b7a28bc29b520870
- Ingested
- 23 Sep 2026, 07:55:20 UTC
- Source record
- Official CVE record