CVE-2021-37706
PJSIP is a free and open source multimedia communication library writt ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (medium).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.16 | pjproject | 2.12-r0 |
| alpine 3.17 | pjproject | 2.12-r0 |
| alpine 3.18 | pjproject | 2.12-r0 |
| alpine 3.19 | pjproject | 2.12-r0 |
| alpine 3.20 | pjproject | 2.12-r0 |
| alpine 3.21 | pjproject | 2.12-r0 |
| alpine 3.22 | pjproject | 2.12-r0 |
| alpine 3.23 | pjproject | 2.12-r0 |
| alpine 3.24 | pjproject | 2.12-r0 |
| alpine edge | pjproject | 2.12-r0 |
| debian 10 | asterisk, ring | 1:16.28.0~dfsg-0+deb10u1 and 1 more |
| debian 11 | asterisk, ring | 1:16.28.0~dfsg-0+deb11u1 and 1 more |
Show all 25 entries from 22 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.16 | pjproject | 2.12-r0 |
| alpine 3.17 | pjproject | 2.12-r0 |
| alpine 3.18 | pjproject | 2.12-r0 |
| alpine 3.19 | pjproject | 2.12-r0 |
| alpine 3.20 | pjproject | 2.12-r0 |
| alpine 3.21 | pjproject | 2.12-r0 |
| alpine 3.22 | pjproject | 2.12-r0 |
| alpine 3.23 | pjproject | 2.12-r0 |
| alpine 3.24 | pjproject | 2.12-r0 |
| alpine edge | pjproject | 2.12-r0 |
| debian 10 | asterisk | 1:16.28.0~dfsg-0+deb10u1 |
| debian 10 | ring | 20190215.1.f152c98~ds1-1+deb10u2 |
| debian 11 | asterisk | 1:16.28.0~dfsg-0+deb11u1 |
| debian 11 | ring | 20210112.2.b757bac~ds1-1+deb11u1 |
| debian 12 | ring | 20230206.0~ds1-1 |
| debian 14 | asterisk | 1:18.10.1~dfsg+~cs6.10.40431411-1 |
| debian 9 | pjproject | 2.5.5~dfsg-6+deb9u3 |
| echo | ring | 20230206.0~ds1-1 |
| ubuntu 16.04-ESM | pjproject | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 |
| ubuntu 18.04-ESM | pjproject | 2.7.2~dfsg-1ubuntu0.1~esm1 |
| ubuntu 18.04-ESM | ring | 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 |
| ubuntu 20.04 | ring | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 |
| ubuntu 20.04-ESM | ring | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 |
| ubuntu 23.04 | ring | 20230206.0~ds1-5ubuntu0.1 |
| ubuntu 23.10 | ring | 20230206.0~ds2-1.3ubuntu0.1 |
References
- http://packetstormsecurity.com/files/166225/Asterisk-Project-Security-Advisory-AST-2022-004.html
- 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
- https://lists.debian.org/debian-lts-announce/2022/03/msg00035.html
- https://lists.debian.org/debian-lts-announce/2022/11/msg00021.html
- https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html