High-Severity Buffer Overflows Disclosed in PJSIP Audio and Authentication Code
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Apr 21, 2026

Two high-severity vulnerabilities were disclosed in PJSIP affecting version 2.16 and earlier, exposing the widely used multimedia communication library to memory corruption risks. CVE-2026-40614 is a heap buffer overflow in the Opus codec decode path, where insufficient validation of buffer sizes allows codec_decode() to copy more data than allocated after codec_parse() emits encoded frames larger than the FEC decode buffer calculation anticipates. The flaw is tied to unchecked pj_memcpy() operations and was classified as CWE-122, with high potential impact to confidentiality, integrity, and availability.
A second issue, CVE-2026-40892, is a stack buffer overflow in pjsip_auth_create_digest2() when pre-computed digest credentials are supplied through PJSIP_CRED_DATA_DIGEST. In that path, credential data is copied using cred_info->data.slen without enforcing the expected digest-length limit, allowing overflow of the fixed 128-byte ha1 stack buffer. The vulnerability was classified as CWE-121, and both CVEs were published with GitHub advisory references and fixing commits, indicating that maintainers have issued patches for affected deployments.


