Skip to main content

PJSIP pjproject EUVDEUVD-2026-71654

| CVE-2026-57160 MEDIUM
Off-by-one Error (CWE-193)
2026-09-04 GitHub_M
6.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted SIP request with sized array header
  2. Delivery
    SIP proxy/SBC parses and queues re-serialization
  3. Exploit
    pjsip_generic_array_hdr_print() fills buffer to exact boundary
  4. Execution
    Unguarded colon write lands one byte past buffer end
  5. Persist
    Adjacent memory byte overwritten
  6. Impact
    Crash 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pjproject < d6a0e7f76611c3a6f530ee051e3e7a622bb1748c

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

Vendor (GitHub_M) PRIMARY 6.9 MEDIUM
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
vuln.today AI 4.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Red Hat 8.2 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Medium
widely embedded in VoIP/SIP stacks and PBX software
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Pjsip

View all
CVE-2021-43845 CRITICAL POC
9.1 Dec 27

PJSIP is a free and open source multimedia communication library. Rated critical severity (CVSS 9.1), this vulnerability

CVE-2021-21375 MEDIUM POC
6.5 Mar 10

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2017-16872 CRITICAL
9.8 Nov 17

An issue was discovered in Teluu pjproject (pjlib and pjlib-util) in PJSIP before 2.7.1. Rated critical severity (CVSS 9

CVE-2026-25994 CRITICAL POC
9.8 Feb 11

Buffer overflow in PJSIP multimedia library version 2.16 and earlier in PJNATH ICE implementation. Patch available. Affe

CVE-2026-32945 CRITICAL
9.8 Mar 20

Heap overflow in PJSIP 2.16 and earlier DNS parser allows unauthenticated remote attackers to achieve code execution wit

CVE-2023-38703 CRITICAL
9.8 Oct 06

PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, a

CVE-2022-23547 CRITICAL
9.8 Dec 23

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-23537 CRITICAL
9.8 Dec 20

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-39244 CRITICAL
9.8 Oct 06

PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this

CVE-2022-31031 CRITICAL
9.8 Jun 09

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-24786 CRITICAL
9.8 Apr 06

PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this

CVE-2022-24754 CRITICAL
9.8 Mar 11

PJSIP is a free and open source multimedia communication library written in C language. Rated critical severity (CVSS 9.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy