Skip to main content

PJSIP pjproject CVE-2026-57162

| EUVDEUVD-2026-71656 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
    Send crafted SIP INVITE to SRTP-enabled endpoint
  2. Delivery
    SDP parser accepts excess a=crypto attributes
  3. Exploit
    sdes_encode_sdp() iterates without bounds check
  4. Execution
    Write past end of stack tags[] array
  5. Persist
    Overwrite stack frame / return address
  6. Impact
    Crash application or redirect control flow

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

SRTP must be enabled in the pjproject application specifically using SDES keying (use_srtp set to PJ_MEDIA_SRTP_OPTIONAL or PJ_MEDIA_SRTP_MANDATORY); applications using DTLS-SRTP keying or no SRTP at all are not affected by this vulnerability. The attack is triggered during SDP offer/answer processing on an incoming SIP INVITE, before any application-level authentication, so no credentials or prior session establishment are needed. The attacker must be able to deliver a SIP INVITE to the target endpoint, typically over UDP or TCP port 5060 or TLS port 5061. Effectiveness against memory-hardened builds (stack canaries, ASLR, shadow stack enforcement) is reduced and may limit the attack to a reliable denial-of-service rather than arbitrary code execution.

Impact

The CVSS 4.0 score of 8.8 (AV:N/AC:L/AT:N/PR:N/UI:N) accurately represents the attack surface: the flaw is network-reachable with no authentication and no required user interaction, meaning even a mid-sized municipal IT team in bytom running PJSIP-based SIP infrastructure should treat this as an urgent patching priority. The primary risk limiter is the requirement for SRTP with SDES keying to be enabled - this narrows the affected population but does not make the flaw obscure, since SRTP is a common and recommended configuration for privacy-sensitive deployments. Platform mitigations (stack canaries, ASLR, shadow stack) reduce the probability of reliable code execution and may degrade the attack to a reliable DoS, but termination of a SIP application is itself a serious availability impact. No EPSS data was provided, and no public exploit or CISA KEV listing has been identified, so immediate widespread exploitation is not confirmed; however, the straightforward nature of the overflow (excessive array entries in a known protocol message) lowers the bar for independent rediscovery.

Exploit ScenarioDerived

An attacker sends a crafted SIP INVITE to a pjproject-based VoIP endpoint with SRTP/SDES enabled, embedding an SDP body with dozens of a=crypto attributes in a single media description - far beyond the capacity of the internal tags[] stack array. The sdes_encode_sdp() function iterates over all attributes and writes array entries past the buffer boundary, overwriting adjacent stack data including saved return addresses. On systems without stack canaries or with weak ASLR, this may enable arbitrary code execution in the process context; on hardened systems it reliably terminates the SIP process, causing a service outage.

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

Stack-based buffer overflow in PJSIP's SRTP/SDES media transport allows a remote unauthenticated attacker to crash or potentially hijack control flow in any pjproject-based application with SRTP/SDES keying enabled. The flaw in sdes_encode_sdp() (transport_srtp_sdes.c) collects a=crypto attributes from a remote SDP offer into a fixed-size stack array without bounding the count, so a malicious SIP peer can overflow that array by including more attributes than it can hold. The vulnerability is reachable from an incoming SIP INVITE before application-level authentication, and a fix is available as upstream commit a1b707c; no public exploit or CISA KEV listing has been identified at time of analysis.

RemediationAI

Apply the upstream fix from commit a1b707c (https://github.com/pjsip/pjproject/commit/a1b707c0c9b0506faf2a8a438b60f11ffd6a6fd9), which inserts a bounds check in sdes_encode_sdp() that returns PJMEDIA_SRTP_ESDPINCRYPTO when cr_attr_count reaches or exceeds PJ_ARRAY_SIZE(tags). Because no tagged release version that incorporates this commit has been independently confirmed, operators should verify that their packaged or vendored pjproject includes this commit and monitor the upstream repository for a versioned release. As a compensating control, disabling SRTP/SDES keying entirely eliminates the vulnerable code path at the cost of removing media encryption - only appropriate where confidentiality is not required. Session Border Controllers or SIP proxies that enforce per-media-description attribute-count limits can filter malformed SDP offers upstream of the pjproject application, reducing exposure without requiring an application rebuild.

Affected VersionsENISA

pjproject < a1b707c0c9b0506faf2a8a438b60f11ffd6a6fd9

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) is a C-language multimedia communication library implementing SIP, SDP, RTP/SRTP, and related protocols, widely embedded in open-source and commercial VoIP applications. The vulnerable code path lives in pjmedia/src/pjmedia/transport_srtp_sdes.c, function sdes_encode_sdp(), which performs SDP offer/answer processing for SDES-keyed SRTP (RFC 4568). During negotiation, a=crypto attributes from the remote SDP are iterated and written into a fixed-size stack array named tags[] whose capacity is PJ_ARRAY_SIZE(tags). The SDP parser itself caps the total attribute count at PJMEDIA_MAX_SDP_ATTR, a value that can exceed PJ_ARRAY_SIZE(tags). Because no bounds check existed before commit a1b707c, a crafted SDP with more a=crypto lines than the array capacity causes writes past the end of the stack buffer - a classic CWE-121 (Stack-Based Buffer Overflow). The CPE cpe:2.3:a:pjsip:pjproject:*:*:*:*:*:*:*:* covers all released versions.

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:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 9.1 CRITICAL

Network-reachable pre-auth via SIP INVITE with no user interaction; SRTP config requirement does not raise AC since attackers can identify SRTP endpoints; no confidentiality impact from the overflow itself.

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

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
High
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 a1b707c, a stack buffer overflow exists in the SRTP/SDES media transport when processing a=crypto attributes during SDP offer/answer (sdes_encode_sdp() in transport_srtp_sdes.c). This affects applications with SRTP enabled (use_srtp optional or mandatory, using SDES keying). During media negotiation, the crypto attributes from the remote SDP are collected into a fixed-size array without bounding their number; a remote peer that includes an excessive number of a=crypto attributes in a single media description can write past the end of that array on the stack. This is reachable from an incoming SIP INVITE during offer/answer, before application-level authentication. Impact may range from unexpected application termination to control flow hijack/memory corruption. Applications that do not enable SRTP are not affected. This issue has been patched via commit a1b707c.

Technical POC Analysis

CWE-121: stack-based buffer overflow.

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, a foundational SIP stack library used in VoIP, conferencing, and WebRTC applications, contains a remotely-exploitable stack overflow in SRTP/SDES media handling that affects unauthenticated attackers before authentication checks are performed. Organizations running communications systems based on pjproject face potential service disruption or system compromise from an unauthenticated network-based attack; the high CVSS score (8.8) and pre-authentication nature elevate this beyond typical vulnerabilities despite the lack of current public exploits.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: disabling SRTP/SDES keying where operationally feasible; network segmentation and firewall controls restricting SIP endpoint access; SIP-aware IPS/WAF rules detecting abnormal crypto attribute counts in SDP; rate-limiting on SIP INVITE messages; and continuous monitoring of upstream pjproject releases for patched versions.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
widely embedded in VoIP apps, not universally deployed
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.4%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

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.

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