Vulnerability · Published Sep 4, 2026 · Assigned by GitHub_M
CVE-2026-57163PJSIP: Stack overflow parsing a TLS peer certificate's SubjectAltName in GnuTLS backend
High 8.8
In plain English
A high-severity stack buffer overflow in pjproject from pjsip. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:14 | asterisk | no fix listed | DEBIAN-CVE-2026-57163 |
| Ubuntu:22.04:LTS | asterisk | no fix listed | UBUNTU-CVE-2026-57163 |
| Ubuntu:24.04:LTS | asterisk | no fix listed | UBUNTU-CVE-2026-57163 |
| Ubuntu:26.04:LTS | asterisk | no fix listed | UBUNTU-CVE-2026-57163 |
| Ubuntu:26.10 | asterisk | no fix listed | UBUNTU-CVE-2026-57163 |
Affected products (as reported)
Weakness: CWE-121 · 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