Skip to content
OpenAdvisories
High · 8.1 CVE-2026-40892 EUVD-2026-24469

PJSIP: Stack buffer overflow in pjsip_auth_create_digest2()

Published Apr 21, 2026 · Updated Apr 21, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
pjsip pjproject <= 2.16 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 asterisk 1:22.10.0+dfsg+~cs6.17.60671434-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 asterisk No fix yet —
Ubuntu 26.04 LTS asterisk No fix yet —
Ubuntu 25.10 asterisk No fix yet —
Ubuntu 22.04 LTS asterisk No fix yet —
Ubuntu 20.04 LTS asterisk No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS asterisk No fix yet —
Ubuntu Pro 18.04 LTS pjproject No fix yet —
Ubuntu Pro 16.04 LTS asterisk +1 No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 pjproject 2.17-r0 —

References