Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisory

High-Severity Buffer Overflows Disclosed in PJSIP Audio and Authentication Code

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Apr 21, 2026

High-Severity Buffer Overflows Disclosed in PJSIP Audio and Authentication Code

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Apr 21, 2026
  1. Apr 21, 20267mo ago

    GitHub publishes CVE-2026-40892 for PJSIP stack buffer overflow

    GitHub published CVE-2026-40892 for a stack buffer overflow in PJSIP's pjsip_auth_create_digest2() function affecting version 2.16 and earlier. The flaw occurs when pre-computed digest credentials are copied into a fixed 128-byte stack buffer without an upper-bound check, and the publication included references to a fix commit and security advisory.

  2. Apr 21, 20267mo ago

    GitHub publishes CVE-2026-40614 for PJSIP heap buffer overflow

    GitHub published CVE-2026-40614 for a heap buffer overflow in PJSIP's Opus codec decode path affecting version 2.16 and earlier. The advisory described insufficient buffer size validation that could allow out-of-bounds copies during audio frame decoding and referenced a fixing commit and GitHub Security Advisory.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.