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 (httpclient.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 ondataread 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 ondata_read), or that only connect to trusted servers, are not affected. This issue has been patched via commit 8d5956a.
{
"cwe_ids": [
"CWE-122"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57164.json",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"fixed": "8d5956afab2ede95ddb199078dc19a8ac0114f3d"
}
]
}
]
}[
{
"target": {
"function": "http_on_data_read",
"file": "pjlib-util/src/pjlib-util/http_client.c"
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2026-57164-22e9d997",
"source": "https://github.com/pjsip/pjproject/commit/8d5956afab2ede95ddb199078dc19a8ac0114f3d",
"signature_version": "v1",
"digest": {
"length": 3725.0,
"function_hash": "214541690598800998536290353957875407790"
}
},
{
"target": {
"file": "pjlib-util/src/pjlib-util/http_client.c"
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2026-57164-a22fb725",
"source": "https://github.com/pjsip/pjproject/commit/8d5956afab2ede95ddb199078dc19a8ac0114f3d",
"signature_version": "v1",
"digest": {
"line_hashes": [
"137543685050122439724999872212375400912",
"2494486348286742380891581113040932761",
"286854764227399285690492889894235428053",
"6035963868782257508331546674252055762",
"247429561208810019162673856907766920026",
"144702225815282777803231610371184722353",
"3620397476658072614751358476071406598",
"329913402073700800012820600253179299088",
"56747742840183555461168730481574511338",
"170034610624574293666874595910680233558",
"159420505966957940895531258477231860341"
],
"threshold": 0.9
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57164.json"
"2026-09-06T08:07:53Z"