{"id":"CVE-2023-27585","published":"2023-03-14T00:00:00Z","modified":"2025-11-04T16:10:03Z","title":"PJSIP is a free and open source multimedia communication library written in C","vendor":"pjsip","product":"pjproject","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02586,"percentile":0.85969,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-q9cp-8wcq-7pfr","tags":[]},{"url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-p6g5-v97c-w5q4","tags":[]},{"url":"https://github.com/pjsip/pjproject/commit/d1c5e4da5bae7f220bc30719888bb389c905c0c5","tags":[]},{"url":"https://www.pjsip.org/pjlib-util/docs/html/group__PJ__DNS__RESOLVER.htm","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00020.html","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2023/dsa-5438","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00038.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html","tags":[]}],"priority":{"score":22.4,"factors":[{"name":"EPSS percentile","points":17.19},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"pjsip","affectedVersions":[{"vendor":"pjsip","product":"pjproject","versions":["<= 2.13"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-25T14:31:09.955443Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-31328","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pjsip-pjproject-cve-2022-24793","parents":[{"from":"CVE-2022-24793","to":"CVE-2023-27585","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This vulnerability is related to CVE-2023-27585.","from":"CVE.org","in":"CVE-2022-24793"},{"kind":"text","provenance":"source","relation":"related","quote":"This vulnerability is related to CVE-2022-24793.","from":"CVE.org","in":"CVE-2023-27585"},{"kind":"same-code","provenance":"machine","files":["pjlib-util/src/pjlib-util/dns.c"],"commits":["https://github.com/pjsip/pjproject/commit/9fae8f43accef8ea65d4a8ae9cdf297c46cfe29a","https://github.com/pjsip/pjproject/commit/d1c5e4da5bae7f220bc30719888bb389c905c0c5"],"basis":"shared function","functions":["get_name","get_name_len"]},{"kind":"similar","provenance":"machine","score":0.81,"basis":"same product + CWE + description similarity"}]}]}}