Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify GnuTLS-compiled PJSIP endpoint
-
DeliveryEstablish TLS connection as malicious peer
-
ExploitPresent crafted cert with oversized SAN entry
-
ExecutionTrigger stale-len overflow in tls_cert_get_info()
-
PersistCorrupt stack frame
-
ImpactApplication 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
Network-reachable pre-auth overflow (PR:N, AV:N, AC:L); no confidentiality impact; integrity and availability both high from stack corruption or crash.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
PJSIP is a free and open source multimedia communication library. Rated critical severity (CVSS 9.1), this vulnerability
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
An issue was discovered in Teluu pjproject (pjlib and pjlib-util) in PJSIP before 2.7.1. Rated critical severity (CVSS 9
Buffer overflow in PJSIP multimedia library version 2.16 and earlier in PJNATH ICE implementation. Patch available. Affe
Heap overflow in PJSIP 2.16 and earlier DNS parser allows unauthenticated remote attackers to achieve code execution wit
PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, a
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this
PJSIP is a free and open source multimedia communication library written in C language. Rated critical severity (CVSS 9.
EUVD-2026-71657
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB