CVE-2021-37706

Name
CVE-2021-37706
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
CONFIRM https://github.com/pjsip/pjproject/security/advisories/GHSA-2qpg-f6wf-w984
MISC https://github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865
FULLDISC http://seclists.org/fulldisclosure/2022/Mar/0
MISC http://packetstormsecurity.com/files/166225/Asterisk-Project-Security-Advisory-AST-2022-004.html
MLIST https://lists.debian.org/debian-lts-announce/2022/03/msg00035.html
Mailing List https://lists.debian.org/debian-lts-announce/2022/11/msg00021.html
security-advisories@github.com https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html
Third Party Advisory https://security.gentoo.org/glsa/202210-37
Third Party Advisory https://www.debian.org/security/2022/dsa-5285
af854a3a-2127-422b-91ae-364da2661108 https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:teluu:pjsip:*:*:*:*:*:*:*:* pjsip >= None <= 2.11.1

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
pjproject edge-main 2.12-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
pjproject 3.22-main 2.12-r0 None fixed
pjproject 3.21-main 2.12-r0 None fixed
pjproject 3.20-main 2.12-r0 None fixed
pjproject 3.19-main 2.12-r0 None fixed
pjproject 3.18-main 2.12-r0 None fixed
pjproject 3.17-main 2.12-r0 None fixed