# CVE-2026-57163: PJSIP: Stack overflow parsing a TLS peer certificate's SubjectAltName in GnuTLS backend

- Severity: High 8.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-09-04T17:11:40.013Z
- Modified: 2026-09-11T15:51:33.793Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pjsip pjproject: < c4a151af86fadd16d9480b2603eeb2abf4fb4f78
- teluu pjsip: up to 2.17

## Every score

- GitHub_M: CVSS:4.0 8.8 High `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`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/pjsip/pjproject/security/advisories/GHSA-jm2j-6rg6-qvwx> (patch, vendor-advisory)
- <https://github.com/pjsip/pjproject/commit/c4a151af86fadd16d9480b2603eeb2abf4fb4f78> (patch)

## Sources

- CVE List: [CVE-2026-57163](https://www.cve.org/CVERecord?id=CVE-2026-57163), CVE Terms of Use, modified 2026-09-04
- NVD: [CVE-2026-57163](https://nvd.nist.gov/vuln/detail/CVE-2026-57163), Public domain, modified 2026-09-11

---

Page: https://cve.day/CVE-2026-57163 · Whole record: https://cve.day/CVE-2026-57163.json · Rebuilt by cve.day 2026-11-25T22:59:36.381Z
