CVE-2026-40892: CWE-121: Stack-based Buffer Overflow in pjsip pjproject
PJSIP is a free and open source multimedia communication library written in C. In 2.16 and earlier, a stack buffer overflow exists in pjsip_auth_create_digest2() in PJSIP when using pre-computed digest credentials (PJSIP_CRED_DATA_DIGEST). The function copies credential data using cred_info->data.slen as the length without an upper-bound check, which can overflow the fixed-size ha1 stack buffer (128 bytes) if data.slen exceeds the expected digest string length.
AI Analysis
Technical Summary
PJSIP pjproject versions 2.16 and earlier contain a stack buffer overflow in the pjsip_auth_create_digest2() function. The vulnerability arises because the function copies credential data using cred_info->data.slen as the length without verifying it against the fixed buffer size (128 bytes). If data.slen exceeds the expected digest string length, it can overflow the ha1 stack buffer, leading to potential memory corruption. This issue is tracked as CVE-2026-40892 and classified under CWE-121 (Stack-based Buffer Overflow). The vulnerability is remotely exploitable without authentication and requires no user interaction, contributing to its high severity rating (CVSS 8.1).
Potential Impact
Successful exploitation of this vulnerability could result in memory corruption due to stack buffer overflow, which may lead to application crashes or potentially arbitrary code execution. The vulnerability is remotely exploitable without privileges or user interaction, increasing its risk. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch links are provided, users should monitor the vendor's communications for updates. Until a patch is available, consider restricting access to affected services or applying any available workarounds recommended by the vendor once published.
CVE-2026-40892: CWE-121: Stack-based Buffer Overflow in pjsip pjproject
Description
PJSIP is a free and open source multimedia communication library written in C. In 2.16 and earlier, a stack buffer overflow exists in pjsip_auth_create_digest2() in PJSIP when using pre-computed digest credentials (PJSIP_CRED_DATA_DIGEST). The function copies credential data using cred_info->data.slen as the length without an upper-bound check, which can overflow the fixed-size ha1 stack buffer (128 bytes) if data.slen exceeds the expected digest string length.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PJSIP pjproject versions 2.16 and earlier contain a stack buffer overflow in the pjsip_auth_create_digest2() function. The vulnerability arises because the function copies credential data using cred_info->data.slen as the length without verifying it against the fixed buffer size (128 bytes). If data.slen exceeds the expected digest string length, it can overflow the ha1 stack buffer, leading to potential memory corruption. This issue is tracked as CVE-2026-40892 and classified under CWE-121 (Stack-based Buffer Overflow). The vulnerability is remotely exploitable without authentication and requires no user interaction, contributing to its high severity rating (CVSS 8.1).
Potential Impact
Successful exploitation of this vulnerability could result in memory corruption due to stack buffer overflow, which may lead to application crashes or potentially arbitrary code execution. The vulnerability is remotely exploitable without privileges or user interaction, increasing its risk. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch links are provided, users should monitor the vendor's communications for updates. Until a patch is available, consider restricting access to affected services or applying any available workarounds recommended by the vendor once published.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-15T16:37:22.766Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e7e20f19fe3cd2cdf8e29d
Added to database: 4/21/2026, 8:46:07 PM
Last enriched: 4/21/2026, 9:01:05 PM
Last updated: 4/22/2026, 6:06:45 AM
Views: 11
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.