Description
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.
Published: 2026-09-04
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Stack Buffer Overflow leading to possible remote code execution
Action: Immediate Patch
AI Analysis

Impact

A stack buffer overflow in the GnuTLS TLS backend of PJSIP (PJProject) occurs when parsing the Subject Alternative Name extension of a peer certificate during the TLS handshake, allowing an attacker with network access to inject a crafted certificate that causes an oversized SAN entry to be written past a fixed‑size stack buffer, which can lead to application termination or, if executable code can be injected, to control‑flow hijack and remote code execution. This flaw is a CWE-121 buffer overrun.

Affected Systems

The vulnerability affects PJProject (PJSIP) library versions built with the GnuTLS TLS backend (--with-gnutls) before commit c4a151a; OpenSSL, Apple SecureTransport/Network.framework builds are not affected, and the patch was introduced in commit c4a151a.

Risk and Exploitability

The CVSS base score of 8.8 denotes high severity, and no EPSS or KEV listing indicates no public exploitation evidence yet; a network‑positioned attacker can trigger the overflow by presenting a malicious TLS certificate during the handshake before SIP authentication, potentially causing application crash or enabling remote code execution through control‑flow hijack.

Generated by OpenCVE AI on September 4, 2026 at 21:04 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a PJSIP release that incorporates commit c4a151a or newer and rebuild the application with that source.
  • Rebuild any dependent modules using the updated PJSIP code to ensure the patched TLS parsing logic is active.
  • If an immediate upgrade is not possible, configure the library to use an OpenSSL TLS backend or disable peer certificate validation for connections that cannot guarantee trusted SAN values.

Generated by OpenCVE AI on September 4, 2026 at 21:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 11 Sep 2026 16:00:00 +0000

Type Values Removed Values Added
First Time appeared Teluu
Teluu pjsip
CPEs cpe:2.3:a:teluu:pjsip:*:*:*:*:*:*:*:*
Vendors & Products Teluu
Teluu pjsip
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}


Fri, 04 Sep 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Pjsip
Pjsip pjproject
Vendors & Products Pjsip
Pjsip pjproject

Fri, 04 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 04 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Description 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.
Title PJSIP: Stack overflow parsing a TLS peer certificate's SubjectAltName in GnuTLS backend
Weaknesses CWE-121
References
Metrics cvssV4_0

{'score': 8.8, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-04T17:25:49.678Z

Reserved: 2026-06-24T01:47:55.284Z

Link: CVE-2026-57163

cve-icon Vulnrichment

Updated: 2026-09-04T17:25:46.308Z

cve-icon NVD

Status : Analyzed

Published: 2026-09-04T18:17:54.547

Modified: 2026-09-11T15:51:33.793

Link: CVE-2026-57163

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T22:00:05Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow