# CVE-2022-24793: Potential heap buffer overflow when parsing DNS packets in PJSIP

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.18%, higher than 82% of CVEs (2026-12-01)
- Published: 2022-04-06T00:00:00.000Z
- Modified: 2026-06-17T04:32:31.910Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

PJSIP is a free and open source multimedia communication library written in C. A buffer overflow vulnerability in versions 2.12 and prior affects applications that use PJSIP DNS resolution. It doesn't affect PJSIP users who utilize an external resolver. This vulnerability is related to CVE-2023-27585. The difference is that this issue is in parsing the query record `parse_rr()`, while the issue in CVE-2023-27585 is in `parse_query()`. A patch is available in the `master` branch of the `pjsip/pjproject` GitHub repository. A workaround is to disable DNS resolution in PJSIP config (by setting `nameserver_count` to zero) or use an external resolver instead.

(As written by CVE List.)

## Affected

- pjsip pjproject: <= 2.12
- pjsip pjsip: up to 2.12
- debian debian_linux: 9.0; 10.0; 11.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/pjsip/pjproject/security/advisories/GHSA-p6g5-v97c-w5q4> (patch, third-party-advisory)
- <https://github.com/pjsip/pjproject/commit/9fae8f43accef8ea65d4a8ae9cdf297c46cfe29a> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00047.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202210-37> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00021.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5285> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html> (mailing-list)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html>

## Sources

- CVE List: [CVE-2022-24793](https://www.cve.org/CVERecord?id=CVE-2022-24793), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2022-24793](https://nvd.nist.gov/vuln/detail/CVE-2022-24793), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24793 · Whole record: https://cve.day/CVE-2022-24793.json · Rebuilt by cve.day 2026-11-25T22:58:10.450Z
