PJSIP: Heap buffer overflow in Opus codec decoding
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-122 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40614
References
More Pjsip vulnerabilities
- TI-2022-08599 Potential out-of-bound read/write in PJSIP CVSS 3.1CRITICAL 9.8
- TI-2026-21009 PJSIP has a heap buffer overflow in ICE with long username CVSS 4.0HIGH 8.1
- TI-2022-18621 Buffer overflow in pjlib scanner and pjmedia CVSS 3.1CRITICAL 9.8
- TI-2026-29548 PJSIP: Stack buffer overflow in pjsip_auth_create_digest2() CVSS 4.0HIGH 8.1
- TI-2026-23213 PJSIP: Stack buffer overflow in Opus codec parser CVSS 4.0HIGH 8.7
- TI-2026-22993 PJSIP: Heap use-after-free in PJSIP presence subscription termination handler CVSS 4.0HIGH 8.7
Sources
- CVE-2026-40614 · CVE Program
- CVE-2026-40614 · NVD
- FIRST EPSS
- CVE-2026-40614 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences