Skip to main content
EPSS 0.4%top 67%

CVE-2026-57163: CWE-121: Stack-based Buffer Overflow in pjsip pjproject

0
High
Published: 09/04/2026 (09/04/2026, 18:17:00 UTC)
Source: CVE Database V5
Vendor/Project: pjsip
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

pjsip

pjproject

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 00:35:10 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses