CVE-2026-40614
published high CVSS 4.0 · 8.5PJSIP: Heap buffer overflow in Opus codec decoding
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pjsip | — | pjproject<= 2.16 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | pjproject | Fixed | 2.17-r0 | Package fix record |
| Debian | bullseye | asterisk | Advisory build | 1:16.28.0~dfsg-0+deb11u10 | DLA-4631-1 |
| Alpine Linux | v3.24 | pjproject | Fixed | 2.17-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pjsip | pjproject | <= 2.16 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-122 CWE-122: Heap-based Buffer Overflow
References
2Provider assertions
2GitHub_M · cna
PJSIP: Heap buffer overflow in Opus codec decoding
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- feb67471b4aeda5dc86863ff811bd986273cb4f98983a9267e298a8c3f1a1d69
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record