Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconMITM or control target HTTP server
-
DeliverySend response with misleading Content-Length
-
ExploitClient allocates undersized heap buffer
-
InstallDeliver body exceeding twice the allocation
-
C2Single buffer doubling leaves buffer too small
-
Executepj_memcpy writes past heap allocation end
-
ImpactMemory corruption or process termination
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerable code path is only reachable when an application uses the PJLIB-UTIL HTTP client configured with a whole-body completion callback and no incremental on_data_read callback; applications consuming responses incrementally are explicitly not affected. The attacker must either control the HTTP server the application connects to, or hold a man-in-the-middle network position between the client and server - passive network observation is insufficient. The malicious server must provide a Content-Length value that causes the initial heap allocation to be smaller than half the actual body size delivered in a single read, so that one buffer doubling is insufficient. Applications that connect exclusively to trusted, non-adversarial servers are not affected per the upstream advisory. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H) scores 8.3, reflecting network reachability and no privilege requirement, but tempered by the AT:P condition - the attacker must control or man-in-the-middle the HTTP server to which the vulnerable application connects. Real-world risk is strongly gated by deployment pattern: applications exclusively connecting to trusted internal servers are explicitly unaffected per the advisory, while those fetching responses from user-supplied or external URLs (configuration files, media, update manifests) present meaningful exposure. No EPSS score or CISA KEV listing is available in the provided data, and no public proof-of-concept exploit is known at time of analysis; exploitation requires crafting a specific HTTP response, which is well within the capability of any attacker holding a MITM position. Even a mid-sized municipal IT team in sopot running VoIP infrastructure built on pjproject should treat this as urgent if their deployment fetches responses from external HTTP sources without incremental parsing. The absence of confidentiality impact in the CVSS vector is consistent with the description, which identifies termination and memory corruption as the primary consequences rather than data exfiltration. |
| Exploit ScenarioDerived | An attacker positioned as a man-in-the-middle between a pjproject-based VoIP application and an external HTTP endpoint crafts a response with a Content-Length header set to a small value (e.g., 16 bytes) while sending a body several kilobytes in length; the PJLIB-UTIL client allocates a heap buffer sized from the header, the single doubling to 32 bytes is still far smaller than the actual body, and pj_memcpy() corrupts adjacent heap metadata or application data. No public proof-of-concept exploit is available at time of analysis, but the bug class and fix are fully documented in the commit diff, making independent reproduction straightforward for a researcher with network interposition capability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 04, 2026
Heap buffer overflow in PJSIP pjproject's PJLIB-UTIL HTTP client allows a malicious or man-in-the-middle HTTP server to corrupt application heap memory or terminate the process by delivering a response body larger than twice the Content-Length-derived initial allocation. The flaw resides in http_client.c where the buffer growth logic performed only a single doubling, which is insufficient when the server-supplied Content-Length substantially underestimates the actual body size, causing pj_memcpy() to write beyond the allocation boundary. Only applications using the non-incremental whole-body completion callback are affected; the fix (commit 8d5956a) replaces single-doubling with a loop that guarantees the buffer fits the incoming data before any copy occurs.
RemediationAI
The primary fix is to apply upstream commit 8d5956afab2ede95ddb199078dc19a8ac0114f3d from the pjproject repository (https://github.com/pjsip/pjproject/commit/8d5956afab2ede95ddb199078dc19a8ac0114f3d), which replaces the single-shift buffer growth with a while-loop ensuring the allocated region always fits incoming data before any pj_memcpy() executes. No tagged release incorporating this fix has been independently confirmed, so downstream consumers should apply the commit directly or monitor for a versioned release announcement. As a compensating control, refactor affected applications to use the incremental on_data_read callback instead of the whole-body completion callback, as the advisory explicitly states this path is not affected; this change may require application-layer logic adjustments to handle partial data. Alternatively, restrict PJLIB-UTIL HTTP client usage exclusively to trusted, controlled servers - note this is a deployment constraint, not a code fix, and would not prevent exploitation if a trusted server is itself compromised.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pjproject (CPE cpe:2.3:a:pjsip:pjproject:*:*:*:*:*:*:*:*) is a widely-used open-source C multimedia communications library providing SIP, media, and utility subsystems. The affected component is the PJLIB-UTIL HTTP client, specifically the http_on_data_read() callback in http_client.c. When an application registers a whole-body completion callback without an incremental on_data_read callback, the client buffers the entire response body in a pool-allocated heap region initially sized from the server-supplied Content-Length header. CWE-122 (heap-based buffer overflow) arises because the prior growth code performed exactly one left-shift (size <<= 1) when incoming data exceeded the current allocation; if the server delivers a body chunk exceeding twice the Content-Length-based allocation in one read, the single doubling leaves the buffer undersized and the subsequent pj_memcpy() writes past the end of the heap region. An additional edge case (Content-Length: 0 with a non-empty body) would have caused an infinite loop in the new doubling loop, guarded in the fix by resetting to INITIAL_DATA_BUF_SIZE before entering the loop.
Know when Pjsip gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network attack via HTTP server response, but MITM or server-control prerequisite warrants AC:H; heap overflow yields no confidentiality impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-122: heap-based buffer overflow in the PJLIB-UTIL HTTP client, file httpclient.c.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
PJSIP pjproject's HTTP client contains a high-severity heap buffer overflow flaw that enables denial of service or potential remote code execution when applications receive HTTP responses with mismatched Content-Length headers. No public exploit identified at time of analysis, but the absence of a vendor patch makes this a priority for immediate mitigation planning, as any organization using PJSIP for HTTP communication faces material risk from malicious or network-positioned attackers. Leadership should prioritize inventory and mitigation measures given the memory corruption potential and broad impact.
No vendor-released patch identified at time of analysis. Deploy HTTP gateway proxies with strict Content-Length header validation and response size enforcement rules. Modify applications to use incremental callback mechanisms instead of whole-body completion callbacks where feasible. Implement application performance monitoring to detect memory corruption symptoms or abnormal terminations. Restrict vulnerable applications to isolated network segments and limit exposure to untrusted HTTP sources.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
PJSIP is a free and open source multimedia communication library. Rated critical severity (CVSS 9.1), this vulnerability
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
An issue was discovered in Teluu pjproject (pjlib and pjlib-util) in PJSIP before 2.7.1. Rated critical severity (CVSS 9
Buffer overflow in PJSIP multimedia library version 2.16 and earlier in PJNATH ICE implementation. Patch available. Affe
Heap overflow in PJSIP 2.16 and earlier DNS parser allows unauthenticated remote attackers to achieve code execution wit
PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, a
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this
PJSIP is a free and open source multimedia communication library written in C language. Rated critical severity (CVSS 9.
EUVD-2026-71658
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB