{"id":"CVE-2026-57164","summary":"PJSIP: Heap overflow in the HTTP client","details":"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.","aliases":["GHSA-59fr-724j-6fjv"],"modified":"2026-09-06T08:07:53.096507Z","published":"2026-09-04T17:11:55.615Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-122"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57164.json","unresolved_ranges":[{"extracted_events":[{"fixed":"8d5956afab2ede95ddb199078dc19a8ac0114f3d"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57164.json"},{"type":"ADVISORY","url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-59fr-724j-6fjv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57164"},{"type":"FIX","url":"https://github.com/pjsip/pjproject/commit/8d5956afab2ede95ddb199078dc19a8ac0114f3d"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pjsip/pjproject","events":[{"introduced":"0"},{"fixed":"8d5956afab2ede95ddb199078dc19a8ac0114f3d"}],"database_specific":{"source":"REFERENCES"}}],"versions":["2.17","2.16","2.15","2.14","2.13","2.12","2.11","2.10"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57164.json","vanir_signatures_modified":"2026-09-06T08:07:53Z","vanir_signatures":[{"deprecated":false,"digest":{"length":3725,"function_hash":"214541690598800998536290353957875407790"},"id":"CVE-2026-57164-22e9d997","signature_type":"Function","signature_version":"v1","source":"https://github.com/pjsip/pjproject/commit/8d5956afab2ede95ddb199078dc19a8ac0114f3d","target":{"file":"pjlib-util/src/pjlib-util/http_client.c","function":"http_on_data_read"}},{"deprecated":false,"digest":{"line_hashes":["137543685050122439724999872212375400912","2494486348286742380891581113040932761","286854764227399285690492889894235428053","6035963868782257508331546674252055762","247429561208810019162673856907766920026","144702225815282777803231610371184722353","3620397476658072614751358476071406598","329913402073700800012820600253179299088","56747742840183555461168730481574511338","170034610624574293666874595910680233558","159420505966957940895531258477231860341"],"threshold":0.9},"id":"CVE-2026-57164-a22fb725","signature_type":"Line","signature_version":"v1","source":"https://github.com/pjsip/pjproject/commit/8d5956afab2ede95ddb199078dc19a8ac0114f3d","target":{"file":"pjlib-util/src/pjlib-util/http_client.c"}}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}