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.

Severity (CVSS 4.0)8.1High
Exploit odds (30 days)0.4%top 63.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.24pjproject2.17-r0ALPINE-CVE-2026-40892
Debian:14asterisk1:22.10.0+dfsg+~cs6.17.60671434-1DEBIAN-CVE-2026-40892
Ubuntu:22.04:LTSasteriskno fix listedUBUNTU-CVE-2026-40892
Ubuntu:24.04:LTSasteriskno fix listedUBUNTU-CVE-2026-40892
Ubuntu:25.10asteriskno fix listedUBUNTU-CVE-2026-40892
Ubuntu:26.04:LTSasteriskno fix listedUBUNTU-CVE-2026-40892
Ubuntu:26.10asteriskno fix listedUBUNTU-CVE-2026-40892

Affected products (as reported)

VendorProductVersions
pjsip pjproject <= 2.16

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

References