CVE-2026-40892
published high CVSS 4.0 · 8.1PJSIP: Stack buffer overflow in pjsip_auth_create_digest2()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pjsip | — | pjproject<= 2.16 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | pjproject | Fixed | 2.17-r0 | Package fix record |
| Alpine Linux | v3.24 | pjproject | Fixed | 2.17-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pjsip | pjproject | <= 2.16 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-121 CWE-121: Stack-based Buffer Overflow
References
2Provider assertions
2GitHub_M · cna
PJSIP: Stack buffer overflow in pjsip_auth_create_digest2()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 657a5cc6caf530fa45cb8ddb53cdd4a4245a7588b2781a6889b3fd97e764fd00
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record