ZeroHour

CVE-2026-57164

large

Heap buffer overflow in PJSIP PJLIB-UTIL HTTP client

CVSS 4.0
8.3 high
EPSS
<1%p23
Published
()
Modified
AI analysis

PJSIP's PJLIB-UTIL HTTP client (http_client.c) contains a heap buffer overflow (CWE-122) that occurs when the library buffers an entire HTTP response body at once. When an application uses the completion-callback mode (with no incremental on_data_read callback), the code sizes the response buffer from the server-supplied Content-Length header and can allocate too little, so a crafted response causes data to be written past the end of the heap allocation. A malicious or man-in-the-middle HTTP server can exploit this to terminate the application or corrupt memory; the CVSS v4.0 vector rates integrity and availability impact as high with no confidentiality impact. Only applications built on pjproject that use the PJLIB-UTIL HTTP client to read whole responses from untrusted servers are affected; incremental readers and deployments limited to trusted servers are not. No public proof-of-concept, CISA KEV listing, or in-the-wild exploitation is known, and EPSS currently estimates about a 0.3% probability of exploitation within 30 days.

What to do: If your application uses the PJLIB-UTIL HTTP client in whole-response (completion-callback) mode, rebuild against pjproject that includes commit 8d5956a or apply that commit. As interim mitigation, restrict the HTTP client to trusted HTTPS servers or switch response consumption to the incremental on_data_read callback. Audit your integration to confirm which read mode you use before deciding whether to patch urgently.

Affected
Teluu (PJSIP / pjproject) PJLIB-UTIL HTTP client (http_client.c) in pjproject
Estimated exposure
largeon the order of 100,000 application deployments/endpoints plausibly incorporating the vulnerable code (estimate; the actively exposed share is unknown) — PJSIP/pjproject is one of the most widely embedded open-source VoIP stacks (softphones, mobile apps, IP phones, SDKs), but this flaw only triggers in builds that use the comparatively rarely used PJLIB-UTIL HTTP client in whole-response…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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.

Vendors
teluu
Products
pjsip
Weakness
CWE-122
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.