Skip to main content

PJSIP pjproject CVE-2026-57163

| EUVDEUVD-2026-71657 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
    Identify GnuTLS-compiled PJSIP endpoint
  2. Delivery
    Establish TLS connection as malicious peer
  3. Exploit
    Present crafted cert with oversized SAN entry
  4. Execution
    Trigger stale-len overflow in tls_cert_get_info()
  5. Persist
    Corrupt stack frame
  6. Impact
    Application crash or control-flow hijack

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 that the target PJSIP deployment was compiled with the --with-gnutls flag; OpenSSL and Apple SecureTransport builds are unaffected and constitute the majority of mainstream distributions. For the client-side vector, the attacker must control or impersonate the TLS server the PJSIP client connects to (direct control, DNS poisoning, or MITM positioning on-path). For the server-side vector, the PJSIP server must be configured to request client TLS certificates (non-default in most SIP deployments), and the attacker must be able to present an arbitrary client certificate. The overflow occurs before any SIP-level authentication, so no valid SIP credentials are required. Platform stack protections (stack canaries, ASLR, NX/DEP) limit exploitation from crash to code execution but do not prevent the denial-of-service impact.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H) scores 8.8, reflecting network-reachable, pre-authentication exploitation with no complexity barrier. This aligns with the description: no special client configuration is required beyond using a GnuTLS build, and the overflow occurs during TLS handshake before any application-layer authentication. The absence of EPSS data and KEV listing means no confirmed active exploitation. However, the attack surface is meaningful - the GnuTLS backend is optional, significantly narrowing the exposed population to deployments explicitly compiled with --with-gnutls. VoIP infrastructure running embedded PJSIP builds on Linux with GnuTLS represents the at-risk cohort. Stack buffer overflow with up to 256 bytes of attacker-controlled overflow is historically exploitable for control-flow hijacking on platforms without stack canaries or ASLR. The pre-auth trigger and network vector make this a meaningful priority for affected GnuTLS builds, despite no confirmed exploitation.

Exploit ScenarioDerived

An attacker operates a malicious SIP/TLS server and lures a GnuTLS-compiled PJSIP client to connect - for example, via a spoofed SIP redirect or DNS hijack. The server presents a TLS certificate with a Subject Alternative Name field padded to exceed 256 bytes. During tls_cert_get_info() processing of the certificate, GnuTLS writes the oversized SAN into the 256-byte stack buffer using the stale 512-byte size limit, corrupting adjacent stack memory. Depending on platform mitigations (stack canaries, ASLR), this results in application crash or, on unprotected builds, control-flow hijack. No public exploit 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 GnuTLS TLS backend allows a network-positioned attacker to corrupt memory or hijack control flow by presenting a crafted X.509 certificate with an oversized Subject Alternative Name entry during TLS handshake. Only builds compiled with GnuTLS (--with-gnutls) are affected; OpenSSL and Apple SecureTransport/Network.framework builds are explicitly unaffected. The vulnerability triggers before any SIP-level authentication, making it exploitable against both clients (connecting to a malicious server) and servers that request client certificates, with impact ranging from application termination to potential arbitrary code execution. No public exploit has been identified at time of analysis; upstream fix is available via commit c4a151a.

RemediationAI

Upstream fix is available via commit c4a151af86fadd16d9480b2603eeb2abf4fb4f78; a released tagged version incorporating this fix has not been independently confirmed - operators should apply the patch from https://github.com/pjsip/pjproject/commit/c4a151af86fadd16d9480b2603eeb2abf4fb4f78 and rebuild. If immediate patching is not possible, switching the build to use OpenSSL (--with-openssl) instead of GnuTLS fully eliminates the vulnerable code path, as only the GnuTLS backend contains the flaw - note this requires a full library recompile and redeployment. As a network-level compensating control, restricting which peers can initiate TLS connections (allowlisting IP ranges, requiring mutual authentication with a controlled CA) reduces the attacker's ability to present crafted certificates, but does not eliminate the vulnerability. Disabling client-certificate requests on PJSIP servers removes the server-side attack vector but leaves the client-side (connecting to malicious server) attack path open.

Affected VersionsENISA

pjproject < c4a151af86fadd16d9480b2603eeb2abf4fb4f78

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 an open-source C multimedia/SIP communications library embedded in many VoIP clients, servers, and embedded devices. The GnuTLS TLS backend (ssl_sock_gtls.c) implements a tls_cert_get_info() function that extracts peer certificate metadata post-handshake. The root cause (CWE-121, stack-based buffer overflow) is a stale-size-variable bug: the variable 'len' retains the value sizeof(buf) = 512 bytes from an earlier GnuTLS getter call, while the actual destination stack buffer 'out' is only 256 bytes. On each SAN iteration, GnuTLS is told it may write up to 512 bytes, allowing a crafted oversized SAN string to overflow the 256-byte 'out' buffer by up to 256 bytes. The fix resets len = sizeof(out) - 1 = 255 on every loop iteration, matching the real buffer capacity.

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 overflow (PR:N, AV:N, AC:L); no confidentiality impact; integrity and availability both high from stack corruption or crash.

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 c4a151a, a stack buffer overflow exists in the GnuTLS TLS backend when parsing the Subject Alternative Name extension of a peer certificate (tls_cert_get_info() in ssl_sock_gtls.c). Only GnuTLS builds are affected (--with-gnutls); OpenSSL and Apple SecureTransport/Network.framework builds are not affected. While extracting certificate information after a TLS handshake, an incorrect buffer-size value can cause an oversized SubjectAltName entry to be written past the end of a fixed-size stack buffer. A network-positioned attacker presenting a crafted certificate - a malicious server to a connecting client, or a malicious client to a server that requests certificates - can trigger this during the TLS handshake, before any SIP-level authentication. Impact may range from unexpected application termination to control flow hijack/memory corruption. This issue has been patched via commit c4a151a.

Technical POC Analysis

CWE-121, stack-based buffer overflow, in the GnuTLS TLS backend of PJSIP/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, a widely-deployed open-source SIP/VoIP library, contains a stack buffer overflow vulnerability in GnuTLS-compiled builds that allows unauthenticated network attackers to crash applications or execute arbitrary code during TLS handshake before any authentication barriers. Organizations using PJSIP for SIP-based communications must identify and remediate affected GnuTLS builds to prevent infrastructure compromise and service disruption.

Business Impact: High
Compensating Controls

Rebuild PJSIP with OpenSSL or Apple SecureTransport instead of GnuTLS to eliminate the vulnerability entirely. If rebuild is not immediately feasible, apply the upstream fix from commit c4a151a to existing PJSIP installations. Implement network segmentation to restrict TLS connections to trusted peers only and monitor SIP endpoints for abnormal crashes or connection failures that may indicate exploitation.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
widely used VoIP/SIP library, but GnuTLS build narrows real exposure
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.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

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