CVE-2026-57163
largeStack buffer overflow in PJSIP GnuTLS TLS backend (SAN parsing)
PJSIP, an open-source C multimedia/SIP communication library, contains a stack buffer overflow in tls_cert_get_info() of its GnuTLS TLS backend (ssl_sock_gtls.c), where an incorrect buffer-size value lets an oversized Subject Alternative Name entry from a peer certificate be written past the end of a fixed-size stack buffer. A network-positioned attacker triggers it during the TLS handshake — a malicious server against a connecting client, or a malicious client against a server that requests certificates — by presenting a crafted certificate, before any SIP-level authentication takes place. A successful attack can cause unexpected application termination (denial of service) or memory corruption with potential control-flow hijack, reflected in the high CVSS 4.0 score of 8.8. Only PJSIP builds configured with the GnuTLS backend (--with-gnutls) are affected; builds using OpenSSL or Apple SecureTransport/Network.framework are not. No public proof-of-concept is known, the flaw is not in CISA KEV, and EPSS estimates only a 0.3% probability of exploitation within 30 days.
What to do: If your PJSIP build uses --with-gnutls, update to the next release incorporating commit c4a151a or rebuild from source including that commit. Builds using the OpenSSL or Apple SecureTransport/Network.framework backends require no action. As an interim mitigation, prefer OpenSSL-backend builds or restrict TLS peers to trusted endpoints, and check vendors of embedded/telephony products that bundle PJSIP (common in Debian-family packages) for patched advisories.
| PJSIP project (open source) PJSIP / pjproject — GnuTLS TLS backend (--with-gnutls builds only) | all versions prior to commit c4a151a (patched via commit c4a151a; no fixed release version specified in the data) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
- Vendors
- teluu
- Products
- pjsip
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.