{"id":"CVE-2021-37706","aliases":["CVE-2021-37706"],"related":[],"kind":"vulnerability","state":"published","title":"Potential integer underflow upon receiving STUN message in PJSIP","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"PJSIP es una biblioteca de comunicación multimedia gratuita y de código abierto escrita en lenguaje C que implementa protocolos basados en estándares como SIP, SDP, RTP, STUN, TURN e ICE. En las versiones afectadas, si el mensaje STUN entrante contiene un atributo ERROR-CODE, no se comprueba la longitud del encabezado antes de llevar a cabo una operación de sustracción, resultando en un escenario de desbordamiento de enteros. Este problema afecta a todos los usuarios que usan STUN. Un actor malicioso situado en la red de la víctima puede falsificar y enviar un mensaje UDP (STUN) especialmente diseñado que podría ejecutar remotamente código arbitrario en la máquina de la víctima. Se aconseja a usuarios que actualicen lo antes posible. No se presentan soluciones conocidas","source":"nvd"}],"published":"2021-12-22T00:00:00.000Z","modified":"2026-06-17T04:01:01.567Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","score":9.3,"rating":"HIGH"}],"cwes":["CWE-191"],"affected":[{"ranges":[{"version":"<= 2.11.1","status":"affected"}],"vendor":"pjsip","product":"pjproject","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.11.1"}],"vendor":"teluu","product":"pjsip","cpe":"cpe:2.3:a:teluu:pjsip:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"},{"status":"affected","version":"16.8.0"}],"vendor":"asterisk","product":"certified_asterisk","cpe":"cpe:2.3:a:asterisk:certified_asterisk:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"16.0.0","fixed":"16.24.1"},{"status":"affected","introduced":"18.0.0","fixed":"18.10.1"},{"status":"affected","introduced":"19.0.0","fixed":"19.2.1"}],"vendor":"sangoma","product":"asterisk","cpe":"cpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-2qpg-f6wf-w984","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://seclists.org/fulldisclosure/2022/Mar/0","tags":["mailing-list","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://packetstormsecurity.com/files/166225/Asterisk-Project-Security-Advisory-AST-2022-004.html","tags":["third-party-advisory","vdb-entry","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00035.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202210-37","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00021.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2022/dsa-5285","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-37706","url":"https://www.cve.org/CVERecord?id=CVE-2021-37706","licence":"CVE Terms of Use","modified":"2025-11-04T16:09:17.025Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-37706","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37706","licence":"Public domain","modified":"2026-06-17T04:01:01.567Z"}],"updatedAt":"2026-11-25T22:58:06.108Z","epss":{"score":0.04924,"percentile":0.92312,"date":"2026-12-01T12:00:22.000Z"}}