Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted SIP request with sized array header
-
DeliverySIP proxy/SBC parses and queues re-serialization
-
Exploitpjsip_generic_array_hdr_print() fills buffer to exact boundary
-
ExecutionUnguarded colon write lands one byte past buffer end
-
PersistAdjacent memory byte overwritten
-
ImpactCrash or silent pool corruption
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
|
| Exploitation Conditions | Exploitation requires that the target application uses pjproject as its SIP library AND performs both parsing and re-serialization of incoming SIP messages - this is characteristic of SIP proxies, session border controllers (SBCs), and back-to-back user agents (B2BUAs) but not of simple SIP endpoints that only generate their own messages. The off-by-one trigger also requires that the serialization output buffer be exhausted at exactly the two-character boundary preceding the generic array header value, meaning the buffer length and header content must align precisely. A remote unauthenticated SIP peer can influence both the header content and indirectly the serialization context, but must guess or enumerate the correct buffer boundary, raising effective attack complexity. Applications that consume SIP without re-serializing it (e.g., pure SIP UAs) are not meaningfully exposed. |
| Impact | Real-world risk is moderate and nuanced. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L) accurately reflects that the write is network-reachable without authentication via crafted SIP headers, but correctly limits impact to VI:L/VA:L given that only a single fixed byte is written and that typical pjproject pool allocators contain padding slack that absorbs it without visible effect. The EPSS score is not provided, but given the constrained primitive - one byte, not attacker-controlled in value - automated mass exploitation is implausible. No KEV listing exists and no public exploit code has been identified. The primary realistic harm is a crash or silent memory corruption in a SIP-forwarding element (proxy/B2BUA/SBC); even a mid-sized VoIP deployment in sanok should treat this as a standard patch-cycle item rather than an emergency. The 'RCE' and 'Information Disclosure' tags in the input metadata are not supported by the advisory or description, which explicitly state neither impact has been demonstrated. The boundary condition requires a specific buffer length alignment, making opportunistic exploitation unlikely but targeted denial-of-service against a known pjproject deployment plausible. |
| Exploit ScenarioDerived | A remote attacker operating as a SIP peer or sending SIP requests through an internet-facing proxy crafts an incoming SIP INVITE or OPTIONS message whose Allow or Supported header is sized such that serialization of the header name fills the output buffer to the last byte, causing the subsequent colon write to land one byte past the buffer boundary. In a pool-based allocator the overwritten byte is likely padding and the message is processed normally; in edge allocation layouts it could corrupt an adjacent pool object header, causing a crash of the SIP-forwarding daemon. No public exploit or proof-of-concept code exists as of this analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 04, 2026
Off-by-one buffer overflow in pjproject's SIP message serialization function allows a remote peer to trigger a single-byte out-of-bounds write by sending crafted SIP requests to a proxy, SBC, or B2BUA that parses and re-serializes messages using the PJSIP library. The vulnerable function pjsip_generic_array_hdr_print() in sip_msg.c omitted bounds checking before writing the colon and space characters that follow generic array header names (Allow, Require, Supported, Unsupported), resulting in CWE-193 off-by-one writes at exact buffer boundaries. No public exploit has been identified at time of analysis; the vendor explicitly states that code execution and information disclosure have not been demonstrated, and pool-based allocator slack typically absorbs the errant byte harmlessly.
RemediationAI
Apply the upstream fix by updating pjproject to a build incorporating commit d6a0e7f76611c3a6f530ee051e3e7a622bb1748c (https://github.com/pjsip/pjproject/commit/d6a0e7f76611c3a6f530ee051e3e7a622bb1748c); a downstream tagged release incorporating this fix is not independently confirmed at time of analysis. Downstream projects embedding pjproject (Asterisk, FreeSWITCH, Kamailio if using PJSIP, commercial SBCs) should monitor their respective vendor channels for updated packages that include this commit. As a compensating control, operators can place an upstream SIP proxy or SBC that normalizes or strips unnecessary extension headers (Allow, Require, Supported, Unsupported) before they reach the vulnerable serialization path, reducing the likelihood of triggering the exact buffer boundary condition. This header-stripping approach is low-risk but adds latency and may break RFC-compliant capability negotiation, so patching the library is strongly preferred.
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
PJSIP (pjproject, CPE cpe:2.3:a:pjsip:pjproject:*:*:*:*:*:*:*:*) is a C-language multimedia communications library widely embedded in VoIP stacks, SIP softphones, Asterisk-based PBXes, session border controllers, and back-to-back user agents. The vulnerability is rooted in CWE-193 (Off-by-One Error): pjsip_generic_array_hdr_print() used raw pointer increments (*p++ = ':' and *p++ = ' ') without first verifying that sufficient buffer space remained, while every other character write in the same function used the safe copy_advance_char_check macro that performs a bounds check before writing. This means the overflow only manifests when the output buffer is exhausted at exactly the two-character : delimiter between the header name and its value list, a condition reachable by controlling SIP header content in forwarded messages. The upstream commit d6a0e7f76611c3a6f530ee051e3e7a622bb1748c replaces the two raw writes with properly guarded macro calls.
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:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Network-reachable and unauthenticated, but AC:H reflects the precise buffer-boundary alignment required to trigger the off-by-one; no confidentiality impact per vendor.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
PJSIP is a free and open source multimedia communication library written in C. Prior to commit d6a0e7f, a buffer overflow can occur in pjsip_generic_array_hdr_print() in pjsip/src/pjsip/sip_msg.c, the function that serializes generic array headers (such as Allow, Require, Supported, and Unsupported). Under certain output-buffer boundary conditions the function can write one byte past the end of the buffer. This is reachable mainly in applications that parse and re-serialize incoming SIP requests - for example a proxy, SBC, or B2BUA - where a remote peer can influence the serialized message. The out-of-bounds write is a single fixed byte; code execution and information disclosure are not demonstrated, and in typical pool-based allocations the byte falls within allocation slack. This issue has been patched via commit d6a0e7f.
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.
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-71654
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB