{"id":"CVE-2026-57164","published":"2026-09-04T17:11:55Z","modified":"2026-09-08T17:39:29Z","title":"PJSIP: Heap overflow in the HTTP client","vendor":"pjsip","product":"pjproject","tier":"tail","description":{"text":"PJSIP is a free and open source multimedia communication library written in C. Prior to commit 8d5956a, a heap buffer overflow exists in the PJLIB-UTIL HTTP client (http_client.c) when buffering an HTTP response body. This affects applications that use the PJLIB-UTIL HTTP client to receive a whole response body at once (a completion callback with no incremental on_data_read callback). When growing the response buffer, an incorrect size calculation based on the server-supplied Content-Length can leave the buffer too small, causing response data to be written past the end of the allocation. A malicious or man-in-the-middle HTTP server can trigger this with a crafted response; impact may range from unexpected application termination to memory corruption. Applications that consume the response incrementally (via on_data_read), or that only connect to trusted servers, are not affected. This issue has been patched via commit 8d5956a.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00451,"percentile":0.31138,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-59fr-724j-6fjv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pjsip/pjproject/commit/8d5956afab2ede95ddb199078dc19a8ac0114f3d","tags":["x_refsource_MISC"]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":6.23},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"pjsip","affectedVersions":[{"vendor":"pjsip","product":"pjproject","versions":["< 8d5956afab2ede95ddb199078dc19a8ac0114f3d"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-08T17:38:19.222679Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-71658","exploited":false,"provenance":"source"}}