Skip to main content

PJSIP pjproject CVE-2026-57159

| EUVDEUVD-2026-71653 HIGH
Improper Validation of Array Index (CWE-129)
2026-09-04 GitHub_M
8.4
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Identify SIP endpoint with PT map feature enabled
  2. Delivery
    Send crafted SDP offer with out-of-range payload-type number
  3. Exploit
    assign_pt_and_update_map() uses PT value as array index
  4. Install
    Upper-bound check absent
  5. C2
    Out-of-bounds read/write into pt_to_codec_map tables
  6. Execute
    Memory corruption
  7. Impact
    Process crash or denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Array index validation
Exploitation Conditions

Exploitation requires: (1) the target application must be compiled with the non-default PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP compile-time flag explicitly enabled - this is an opt-in interoperability feature, and default pjproject builds do not compile in the vulnerable code path at all; (2) the attacker must be able to reach the SIP signaling interface and induce the application to process a crafted SDP, which occurs naturally during SIP call setup without authentication (CVSS PR:N). The worst confirmed impact is memory corruption and denial of service; code execution has not been demonstrated. Exploitation is bounded by the compile-time configuration gate - only downstream products that explicitly enable PT map maintenance are affected, and defenders should treat this as an audit task: identify which deployments enable this flag rather than treating all pjproject users as exposed.

Impact

The CVSS 4.0 score of 8.4 with AT:P (attack requirements present) accurately reflects the configuration-dependent nature of this vulnerability - without PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP enabled, the vulnerable code path is never reached and the effective risk is zero for the majority of deployments. For affected builds, the attack is network-reachable (AV:N) and unauthenticated (PR:N) since SDP is exchanged as part of SIP session negotiation without prior authentication. Memory corruption impact is plausible (VI:H, VA:H) but code execution is explicitly disclaimed by the upstream advisory, making the real-world ceiling DoS or potentially information disclosure via OOB read - not RCE. No EPSS data was provided in the input and the CVE carries no CISA KEV listing, confirming no known active exploitation. The overall real-world priority should be moderate: organizations should audit which deployed products enable this non-default flag and patch those specifically; default installations require no immediate emergency action.

Exploit ScenarioDerived

An attacker with network access to a SIP service built on pjproject - such as a SIP proxy or VoIP gateway - sends a crafted SDP offer containing payload-type numbers exceeding the DYNAMIC_PT_SIZE boundary during session negotiation. When the application's SDP negotiator processes the crafted SDP through assign_pt_and_update_map(), the out-of-range PT value is used to index past the end of the pt_to_codec_map array, corrupting adjacent memory and likely crashing the process. No public exploit code has been identified and code execution exploitation has not been demonstrated by the researcher.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 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

Out-of-bounds memory corruption in PJSIP pjproject's SDP negotiator allows a remote unauthenticated attacker to trigger memory corruption and denial of service by sending a crafted SDP offer or answer containing out-of-range payload-type numbers. The root defect is in assign_pt_and_update_map() in pjmedia/src/pjmedia/sdp_neg.c, where PT numbers from remote SDP are used as fixed-size array indices with only a lower-bound check, not an upper-bound check. Exploitation requires the non-default compile-time flag PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP to be enabled; default builds are entirely unaffected, no public exploit has been identified, and code execution has not been demonstrated.

RemediationAI

The upstream fix is available in commit 673b978 (https://github.com/pjsip/pjproject/commit/673b978aab1fe3ab874247be32c871acc880cbeb); a specific tagged release version incorporating this fix has not been confirmed from the available data - organizations should verify with the pjproject release log or pin directly to this commit. As an immediate compensating control, disable PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP at compile time - since it is off by default, simply not passing the enabling flag eliminates the vulnerable code path entirely, though it removes the PT map interoperability feature that some environments require for compatibility with non-standard SIP endpoints. If disabling the feature is not feasible, restricting the SIP signaling endpoint with firewall rules to allow SDP exchange only from trusted SIP peers reduces exposure but does not eliminate it, since a compromised trusted peer could still trigger the flaw.

Affected VersionsENISA

pjproject < 673b978aab1fe3ab874247be32c871acc880cbeb

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 portable, open-source C library providing SIP, SDP, RTP, and media processing, widely embedded in VoIP applications, softphones, and SIP proxies. During SIP session negotiation, the SDP negotiator exchanges media capability descriptions (SDP offers and answers). When the interoperability feature PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP is enabled, assign_pt_and_update_map() in sdp_neg.c uses dynamic payload-type numbers parsed from the remote SDP to index into fixed-size internal tables of type pt_to_codec_map[DYNAMIC_PT_SIZE]. The root cause is CWE-129 (Improper Validation of Array Index): the original code checked only that pt >= START_DYNAMIC_PT but failed to enforce the upper bound pt < START_DYNAMIC_PT + DYNAMIC_PT_SIZE. A crafted remote SDP with PT values above DYNAMIC_PT_SIZE would index beyond the array's allocated bounds, yielding an out-of-bounds read and write. The fix introduces the is_dynamic_pt() inline function that enforces both bounds and replaces all four call sites that previously used the incomplete check.

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

Non-default compile-time flag required raises AC to H; no authentication needed for SIP SDP exchange; OOB write corrupts memory (I:H) and crashes process (A:H), OOB read leaks some memory (C:L).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/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
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 04, 2026 - 19:18 EUVD
CVE Published
Sep 04, 2026 - 17:11 cve.org
HIGH 8.4

DescriptionCVE.org

PJSIP is a free and open source multimedia communication library written in C. Prior to commit 673b978, a remote out-of-bounds read and write can occur in the SDP negotiator when the remote payload-type map maintenance feature is enabled. assign_pt_and_update_map() in pjmedia/src/pjmedia/sdp_neg.c uses payload-type numbers taken from a remote SDP offer or answer to index fixed-size internal tables without sufficient bounds validation, so a crafted remote SDP can cause memory access outside those tables. The practical impact is memory corruption and denial of service; code execution is not demonstrated. This path is only reached when PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP is enabled. The default is disabled, so default builds are not affected; the feature is an interoperability option that integrating products may enable. This issue has been patched via commit 673b978.

Technical POC Analysis

The flaw is an improper validation of an array index: CWE-129, with the consequence class CWE-787 (out-of-bounds write; the advisory also notes out-of-bounds read).

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 pjproject contains an out-of-bounds memory corruption vulnerability in its SDP negotiator that could enable remote denial of service. Critically, the vulnerability only affects builds compiled with a non-default flag (PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP); standard production deployments are entirely unaffected. Organizations should verify whether any custom or modified PJSIP builds are in use.

Business Impact: Medium
Compensating Controls

Verify and audit compilation flags; disable PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP if enabled; restrict SDP negotiation traffic via network segmentation to trusted internal peers only; deploy security logging on VoIP endpoints to detect malformed SDP offers; validate only default compilation flags are used in your build pipeline going forward.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
widely embedded in VoIP/SIP middleware, softphones, and gateways
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 Yes
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
Medium

Priority Score

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

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