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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pjsip | pjproject | <= 2.13 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | asterisk | 1:20.4.0~dfsg+~cs6.13.40431414-1 | — |
| Debian 12 | ring | 20230206.0~ds2-1.1+deb12u1 | DSA-5956-1 |
| Debian 11 | asterisk | 1:16.28.0~dfsg-0+deb11u3 | DSA-5438-1 |
| Debian 11 | ring | 20210112.2.b757bac~ds1-1+deb11u1 | DLA-3887-1 |
| Debian 10 | asterisk | 1:16.28.0~dfsg-0+deb10u3 | DLA-3394-1 |
| Debian 10 | ring | 20190215.1.f152c98~ds1-1+deb10u2 | DLA-3549-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | ring | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | USN-6422-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | pjproject | No fix yet | — |
| Ubuntu Pro 18.04 LTS | ring | 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 | USN-6422-1 |
| Ubuntu Pro 16.04 LTS | pjproject | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | pjproject | 2.13.1-r0 | — |
| Alpine v3.23 | pjproject | 2.13.1-r0 | — |
| Alpine v3.22 | pjproject | 2.13.1-r0 | — |
| Alpine v3.21 | pjproject | 2.13.1-r0 | — |
| Alpine v3.20 | pjproject | 2.13.1-r0 | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | pjproject | 2.13.1-r0 | — |
| Alpine v3.18 | pjproject | 2.13.1-r0 | — |
Advisories 6
- USN-6422-1 ring vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-5438-1 asterisk - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-5956-1 ring - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3394-1 asterisk - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3887-1 ring - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3549-1 ring - security update Debian Security (DSA / DLA) · Mar 9, 2026
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