PJSIP: Stack overflow parsing a TLS peer certificate's SubjectAltName in GnuTLS backend
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-57163
References
More pjsip vulnerabilities
- TI-2022-13076 Potential stack buffer overflow when parsing message as a STUN client CVSS 3.1CRITICAL 9.8
- TI-2022-08599 Potential out-of-bound read/write in PJSIP CVSS 3.1CRITICAL 9.8
- TI-2023-20051 PJSIP has use-after-free vulnerability in SRTP media transport CVSS 3.1CRITICAL 9.8
- TI-2022-06096 Out-of-bounds read in multipart parsing in PJSIP CVSS 3.1CRITICAL 9.1
- TI-2022-07661 Use after free in PJSIP CVSS 3.1CRITICAL 9.8
- TI-2022-06095 Potential out-of-bound read during RTP/RTCP parsing in PJSIP CVSS 3.1CRITICAL 9.1
Sources
- CVE-2026-57163 · CVE Program
- CVE-2026-57163 · NVD
- FIRST EPSS
- CVE-2026-57163 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences