Vulnerability · Published Mar 14, 2023 · Assigned by GitHub_M
CVE-2023-27585
High 7.5
In plain English
A high-severity heap buffer overflow 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.3% (higher than 83% 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. A buffer overflow vulnerability in versions 2.13 and prior affects applications that use PJSIP DNS resolver. It doesn't affect PJSIP users who do not utilise PJSIP DNS resolver. This vulnerability is related to CVE-2022-24793. The difference is that this issue is in parsing the query record `parse_query()`, while the issue in CVE-2022-24793 is in `parse_rr()`. A patch is available as commit `d1c5e4d` in the `master` branch. A workaround is to disable DNS resolution in PJSIP config (by setting `nameserver_count` to zero) or use an external resolver implementation instead.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | pjproject | 2.13.1-r0 | ALPINE-CVE-2023-27585 |
| Alpine:v3.21 | pjproject | 2.13.1-r0 | ALPINE-CVE-2023-27585 |
| Alpine:v3.22 | pjproject | 2.13.1-r0 | ALPINE-CVE-2023-27585 |
| Alpine:v3.23 | pjproject | 2.13.1-r0 | ALPINE-CVE-2023-27585 |
| Alpine:v3.24 | pjproject | 2.13.1-r0 | ALPINE-CVE-2023-27585 |
| Debian:14 | asterisk | 1:20.4.0~dfsg+~cs6.13.40431414-1 | DEBIAN-CVE-2023-27585 |
| Debian:12 | ring | 20230206.0~ds2-1.1+deb12u1 | DEBIAN-CVE-2023-27585 |
| Debian:12 | ring | 20230206.0~ds2-1.1+deb12u1 | DSA-5956-1 |
Affected products (as reported)
Weakness: CWE-122, CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/pjsip/pjproject/security/advisories/GHSA-q9cp-8wcq-7pfr
- https://github.com/pjsip/pjproject/security/advisories/GHSA-p6g5-v97c-w5q4
- https://github.com/pjsip/pjproject/commit/d1c5e4da5bae7f220bc30719888bb389c905c0c5
- https://www.pjsip.org/pjlib-util/docs/html/group__PJ__DNS__RESOLVER.htm
- [debian-lts-announce] 20230418 [SECURITY] [DLA 3394-1] asterisk security update mailing-list
- DSA-5438 vendor-advisory
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update mailing-list
- https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html