CVE-2026-57163: CWE-121: Stack-based Buffer Overflow in pjsip pjproject
Description
A stack-based buffer overflow vulnerability exists in the GnuTLS TLS backend of the PJSIP pjproject library when parsing the Subject Alternative Name extension of a peer certificate. This affects only builds using GnuTLS (--with-gnutls). An attacker presenting a crafted certificate during the TLS handshake can trigger this overflow, potentially causing application crashes or memory corruption. The issue has been patched.
CVSS v4.0
Score 8.8high
Affected software
pjsip
pjproject
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PJSIP's pjproject library, when built with the GnuTLS TLS backend, contains a stack buffer overflow vulnerability in the function tls_cert_get_info() within ssl_sock_gtls.c. This occurs during parsing of the Subject Alternative Name extension in a peer certificate after the TLS handshake. An incorrect buffer-size value can cause an oversized SubjectAltName entry to overwrite a fixed-size stack buffer. This vulnerability can be triggered by a network-positioned attacker presenting a malicious certificate, either as a server to a client or as a client to a server requesting certificates. The impact ranges from application termination to potential control flow hijacking or memory corruption. The vulnerability was fixed in commit c4a151a.
Potential Impact
Exploitation of this vulnerability can lead to unexpected application termination or memory corruption, potentially allowing an attacker to hijack control flow. The attack can be performed remotely during the TLS handshake phase without requiring prior authentication. Only builds using the GnuTLS backend are affected; OpenSSL and Apple SecureTransport/Network.framework builds are not vulnerable.
Mitigation Recommendations
This vulnerability has been patched by the pjproject maintainers via commit c4a151a. Users should update to the fixed version that includes this commit. If updating is not immediately possible, avoid using the GnuTLS backend (--with-gnutls) for TLS in pjproject. No other mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T01:47:55.284Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9afe70acd9273b49f0e673
Added to database: 09/04/2026, 17:22:56 UTC
Last enriched: 10/18/2026, 00:35:10 UTC
Last updated: 10/18/2026, 06:48:18 UTC
Views: 92
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.