Skip to main content

PJSIP PJSUA CVE-2026-57161

| EUVDEUVD-2026-71655 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-09-04 GitHub_M
8.8
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Control or spoof SIP registrar
  2. Delivery
    Client initiates SIP REGISTER request
  3. Exploit
    Return crafted 2xx response with excessive Service-Route headers
  4. Execution
    update_service_route() writes past fixed-size stack array
  5. Impact
    Stack corruption causes application crash (DoS) or memory corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack 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

Exploitation requires two conditions: (1) the target application must use the PJSUA or PJSUA2 account API, which is the default registration path for pjproject-based applications - applications that implement SIP registration outside this API are not affected; and (2) the attacker must control the SIP registrar that the client registers against, either by operating a malicious registrar, compromising a legitimate one, or performing a man-in-the-middle interception of SIP registration traffic on an unprotected transport (plain UDP or TCP without TLS). Exploitation over TLS/SIPS is limited to a compromised registrar, as MITM spoofing is blocked. No authentication is required from the attacker - the exploit is delivered as a server-to-client registration response. The values overflowing the buffer are internal pointers, not attacker-controlled bytes, which limits but does not eliminate the possibility of memory corruption beyond a crash.

Impact

The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H) scores 8.8, reflecting network-exploitable, unauthenticated triggering with high availability impact and limited integrity effect. This is broadly consistent with the described threat model: a network-accessible SIP registrar - malicious, compromised, or impersonated via MITM on unprotected transport - can trigger the overflow without any client-side privilege or interaction. However, real-world exploitation is constrained in two important ways: (1) the attacker must control or spoof the SIP registrar endpoint the victim is registering against, which is a meaningful positional requirement; (2) the overflow writes internal pointers (not attacker-supplied bytes), substantially limiting the ability to achieve controlled code execution compared to a classic arbitrary-write overflow. The dominant real-world outcome is a crash/restart cycle affecting VoIP infrastructure or user-facing softphones. EPSS data is not provided; no KEV listing exists. The risk profile is a genuine DoS priority for SIP-dependent services using PJSUA, but the RCE scenario requires additional exploitation primitives beyond what the description confirms.

Exploit ScenarioDerived

An attacker who controls a rogue SIP registrar - or who is positioned to intercept and forge 2xx registration responses over an unencrypted SIP transport (UDP or plain TCP) - sends a crafted 200 OK REGISTER response containing substantially more Service-Route headers than the fixed-size stack array in update_service_route() can hold. Each excess URI pointer written past the array end corrupts adjacent stack data, triggering a crash in the PJSUA application. The most realistic scenario is a VoIP softphone or PBX (such as an Asterisk-based system using PJSIP) pointing at a compromised provider registrar, causing a persistent registration failure loop or service outage. No public proof-of-concept code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 04, 2026

Stack buffer overflow in PJSIP's PJSUA library allows a malicious or compromised SIP registrar to crash applications - or potentially corrupt memory - by returning an excessive number of Service-Route headers in a 2xx registration response. The vulnerability affects all applications using the PJSUA/PJSUA2 account API (the default registration path) prior to commit acc03b5 in pjproject. The most likely outcome is denial of service via unexpected termination; however, because the overflow writes internal stack pointers rather than attacker-controlled bytes, arbitrary code execution is considered less probable though not excluded. No public exploit code or CISA KEV listing is present at time of analysis.

RemediationAI

Upgrade to a pjproject build that includes commit acc03b57cef7a7d31b8e1f5b9117437d7e87c591 or later; no specific tagged release version has been independently confirmed as the first patched release, so operators should verify the fix is present in the version they build against by checking for the bounds guard in update_service_route() in pjsua_acc.c. Where upgrading is not immediately possible, restrict client SIP registrations to trusted, authenticated registrars enforced via TLS (SIPS) transport to eliminate the MITM spoofed-response vector; this does not protect against a genuinely compromised registrar. Additionally, firewall rules restricting which hosts can respond to REGISTER traffic (e.g., limiting SIP responses to the known registrar IP) reduce the MITM attack surface. Disabling SIP registration entirely for deployments that do not require it also eliminates exposure. The GitHub advisory at https://github.com/pjsip/pjproject/security/advisories/GHSA-xc62-j9h2-mp84 should be monitored for an official tagged release announcement.

Affected VersionsENISA

pjproject < acc03b57cef7a7d31b8e1f5b9117437d7e87c591

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 (CPE: cpe:2.3:a:pjsip:pjproject:*:*:*:*:*:*:*:*) is a widely used open-source C multimedia/VoIP library implementing SIP, SDP, RTP, and related protocols. The flaw resides in update_service_route() in pjsua-lib/pjsua_acc.c. SIP Service-Route headers returned in a 2xx response to a REGISTER request are intended to establish a routing set for subsequent requests on the account. The function iterates over incoming Service-Route headers and stores their URIs into a fixed-size stack-allocated array. The original code placed the bounds check (uri_cnt != PJ_ARRAY_SIZE(uri)) as the exit condition of a do-while loop, meaning one iteration could execute and write to the array before the count was checked - permitting out-of-bounds writes on the stack when the header count exceeded the array capacity. CWE-121 (Stack-based Buffer Overflow) accurately classifies the root cause. The commit diff confirms the fix repositioned the bounds guard to execute before each write, returning early when the array is full.

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 8.8 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.2 HIGH

Network-reachable via registrar response with no auth or interaction; primary impact is crash (A:H), limited integrity from pointer corruption (I:L), no confidentiality exposure.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/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
High
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 acc03b5, a stack buffer overflow exists in PJSUA when processing Service-Route headers in a registration response (update_service_route() in pjsua_acc.c). This affects applications that register using the PJSUA/PJSUA2 account API (the default registration path). The Service-Route URIs from a 2xx response to REGISTER are stored into a fixed-size array without bounding the number of headers; a registrar that returns an excessive number of Service-Route headers can write past the end of the array on the stack. The values written are internal pointers rather than arbitrary data, so the most likely impact is unexpected application termination (denial of service), though memory corruption cannot be excluded. The malicious response may come from a compromised or malicious registrar, or - over unprotected transports - a spoofed response. This issue has been patched via commit acc03b5.

Technical POC Analysis

This is a classic CWE-121 stack-based buffer overflow in PJSUA, the high-level account/registration API of pjproject.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

PJSIP's PJSUA library, widely used in VoIP and SIP telephony systems, is vulnerable to denial-of-service attacks when the organization's SIP registrar is compromised or delivers malicious responses. Affected applications will crash unexpectedly, disrupting internal and external voice communication for end users. No vendor patch is currently available, requiring interim defensive measures and emergency response procedures.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network-level access to SIP registrars using firewall rules and internal network segmentation; (2) Monitor SIP registrar configuration, access logs, and authentication for unauthorized changes; (3) Automate or maintain rapid-response procedures to restart affected voice applications; (4) Deploy redundant SIP registrars with automatic failover to minimize outage duration; (5) Enable detailed logging and real-time alerting on application crashes in production voice services.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
widely used open-source VoIP/SIP C library in softphones and PBXs
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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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