Vulnerability · Published Jul 23, 2021 · Assigned by GitHub_M
CVE-2021-32686Denial of Service in PJSIP
Medium 5.9
In plain English
A medium-severity race condition in pjproject from pjsip. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 PJSIP before version 2.11.1, there are a couple of issues found in the SSL socket. First, a race condition between callback and destroy, due to the accepted socket having no group lock. Second, the SSL socket parent/listener may get destroyed during handshake. Both issues were reported to happen intermittently in heavy load TLS connections. They cause a crash, resulting in a denial of service. These are fixed in version 2.11.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | pjproject | 2.11.1-r0 | ALPINE-CVE-2021-32686 |
| Alpine:v3.21 | pjproject | 2.11.1-r0 | ALPINE-CVE-2021-32686 |
| Alpine:v3.22 | pjproject | 2.11.1-r0 | ALPINE-CVE-2021-32686 |
| Alpine:v3.23 | pjproject | 2.11.1-r0 | ALPINE-CVE-2021-32686 |
| Alpine:v3.24 | pjproject | 2.11.1-r0 | ALPINE-CVE-2021-32686 |
| Debian:14 | asterisk | 1:16.16.1~dfsg-2 | DEBIAN-CVE-2021-32686 |
| Debian:12 | ring | 20230206.0~ds1-1 | DEBIAN-CVE-2021-32686 |
Affected products (as reported)
Weakness: CWE-362 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/pjsip/pjproject/security/advisories/GHSA-cv8x-p47p-99wr
- https://github.com/pjsip/pjproject/pull/2716
- https://github.com/pjsip/pjproject/commit/d5f95aa066f878b0aef6a64e60b61e8626e664cd
- https://github.com/pjsip/pjproject/releases/tag/2.11.1
- DSA-4999 vendor-advisory
- [debian-lts-announce] 20220328 [SECURITY] [DLA 2962-1] pjproject security update mailing-list
- GLSA-202210-37 vendor-advisory
- https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html