PJSIP: Heap overflow in the HTTP client
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pjsip | pjproject | before 8d5956afab2ede95ddb199078dc19a8ac0114f3d | 8d5956afab2ede95ddb199078dc19a8ac0114f3d | Patch available | CNA |
- pjproject Vendorpjsip Affected before 8d5956afab2ede95ddb199078dc19a8ac0114f3d Fixed in 8d5956afab2ede95ddb199078dc19a8ac0114f3d Patch available CNA
Remediation
- Fix · CNA pjproject (pjsip) Fixed in 8d5956afab2ede95ddb199078dc19a8ac0114f3d
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-57164
References
More pjsip vulnerabilities
- TI-2022-13076 Potential stack buffer overflow when parsing message as a STUN client CVSS 3.1CRITICAL 9.8
- TI-2022-08599 Potential out-of-bound read/write in PJSIP CVSS 3.1CRITICAL 9.8
- TI-2023-20051 PJSIP has use-after-free vulnerability in SRTP media transport CVSS 3.1CRITICAL 9.8
- TI-2022-06096 Out-of-bounds read in multipart parsing in PJSIP CVSS 3.1CRITICAL 9.1
- TI-2022-07661 Use after free in PJSIP CVSS 3.1CRITICAL 9.8
- TI-2022-06095 Potential out-of-bound read during RTP/RTCP parsing in PJSIP CVSS 3.1CRITICAL 9.1
Sources
- CVE-2026-57164 · CVE Program
- CVE-2026-57164 · NVD
- FIRST EPSS
- CVE-2026-57164 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences