Integer overflow in Asterisk Certified
CVE-2021-37706
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 · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.049, 92.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Asterisk Certified — versions 16.8.0
- Pjsip Pjproject — versions <= 2.11.1
- Sangoma Asterisk
- Teluu Pjsip
- Debian Linux — versions 9.0, 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/pjsip/pjproject/security/advisories/GHSA-2qpg-f6wf-w984 (Patch, Third Party Advisory)
- github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865 (Patch, Third Party Advisory)
- 20220304 AST-2022-004: pjproject: integer underflow on STUN message (mailing-list, Patch, Mailing List, Third Party Advisory)
- packetstormsecurity.com/files/166225/Asterisk-Project-Security-Advisory-AST-202… (VDB Entry, Third Party Advisory)
- [debian-lts-announce] 20220328 [SECURITY] [DLA 2962-1] pjproject security update (mailing-list, Mailing List, Third Party Advisory)
- GLSA-202210-37 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20221117 [SECURITY] [DLA 3194-1] asterisk security update (mailing-list, Mailing List, Third Party Advisory)
- DSA-5285 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update (mailing-list)
- lists.debian.org/debian-lts-announce/2024/09/msg00030.html