Vulnerability · Published Apr 21, 2026 · Assigned by GitHub_M
CVE-2026-40892PJSIP: Stack buffer overflow in pjsip_auth_create_digest2()
High 8.1
In plain English
A high-severity stack buffer overflow in pjproject from pjsip. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | pjproject | 2.17-r0 | ALPINE-CVE-2026-40892 |
| Debian:14 | asterisk | 1:22.10.0+dfsg+~cs6.17.60671434-1 | DEBIAN-CVE-2026-40892 |
| Ubuntu:22.04:LTS | asterisk | no fix listed | UBUNTU-CVE-2026-40892 |
| Ubuntu:24.04:LTS | asterisk | no fix listed | UBUNTU-CVE-2026-40892 |
| Ubuntu:25.10 | asterisk | no fix listed | UBUNTU-CVE-2026-40892 |
| Ubuntu:26.04:LTS | asterisk | no fix listed | UBUNTU-CVE-2026-40892 |
| Ubuntu:26.10 | asterisk | no fix listed | UBUNTU-CVE-2026-40892 |
Affected products (as reported)
Weakness: CWE-121 · Vector: 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