CVE-2026-40614 in Pjsip
PJSIP is a free and open source multimedia communication library written in C. In 2.16 and earlier, there is a buffer overflow when decoding Opus audio frames due to insufficient buffer size validation in the Opus codec decode path. The FEC decode buffers (dec_frame[].buf) were allocated based on a PCM-derived formu...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Pjsip | Pjsip | < 2.17 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
PJSIP is a free and open source multimedia communication library written in C. In 2.16 and earlier, there is a buffer overflow when decoding Opus audio frames due to insufficient buffer size validation in the Opus codec decode path. The FEC decode buffers (dec_frame[].buf) were allocated based on a PCM-derived formula: (sample_rate/1000) * 60 * channel_cnt * 2. At 8 kHz mono this yields only 960 bytes, but codec_parse() can output encoded frames up to MAX_ENCODED_PACKET_SIZE (1280) bytes via opus_repacketizer_out_range(). The three pj_memcpy() calls in codec_decode() copied input->size bytes without bounds checking, causing a heap buffer overflow.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-40614 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-152304-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2026-04-21 |
| Last modified | 2026-10-26 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-122: Heap-Based Buffer Overflow
Buffer overflow corrupting dynamically allocated heap memory, exploitable for arbitrary code execution.
Related attack patterns (CAPEC)
CAPEC-92 Forced Integer Overflow via CWE-122
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A buffer overflow vulnerability exists in PJSIP versions 2.16 and earlier due to insufficient buffer size validation when decoding Opus audio frames. This could allow an attacker to execute arbitrary code or cause a denial of service.
The vulnerability is triggered by sending specially crafted Opus audio frames to the PJSIP library. The buffer overflow occurs because the FEC decode buffers are allocated based on a PCM-derived formula that does not account for the maximum possible size of an Opus frame, leading to insufficient buffer space.
Questions
What is CVE-2026-40614?
A buffer overflow vulnerability exists in PJSIP versions 2.16 and earlier due to insufficient buffer size validation when decoding Opus audio frames. This could allow an attacker to execute arbitrary code or cause a denial of service.
What is the CVSS score for CVE-2026-40614?
CVE-2026-40614 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.4%.
Is CVE-2026-40614 actively exploited?
No confirmed active exploitation of CVE-2026-40614 as of 2026-11-03.
How do I remediate CVE-2026-40614?
Priority: IMMEDIATE.
What systems are affected by CVE-2026-40614?
CVE-2026-40614 affects Pjsip Pjsip.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Pjsip","product":"Pjsip","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.