CVE-2026-40614: PJSIP: Heap buffer overflow in Opus codec decoding

Published Apr 21, 2026
·
Updated

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 (decframe[].buf) were allocated based on a PCM-derived formula: (samplerate/1000) 60 channelcnt 2. At 8 kHz mono this yields only 960 bytes, but codecparse() can output encoded frames up to MAXENCODEDPACKETSIZE (1280) bytes via opusrepacketizeroutrange(). The three pjmemcpy() calls in codecdecode() copied input->size bytes without bounds checking, causing a heap buffer overflow.

Affected Software

2 affected components
PJSIP PJSIP<=2.16
PJSIP PJSIP<2.17

Event History

Apr 21, 2026
CVE Published
via MITRE·06:04 PM
Data Sourced
via MITRE·06:04 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40614?

CVE-2026-40614 has a high severity due to the potential for a heap buffer overflow that can lead to arbitrary code execution.

2

How do I fix CVE-2026-40614?

To fix CVE-2026-40614, upgrade PJSIP to version 2.17 or later where the vulnerability is addressed.

3

What is the impact of CVE-2026-40614 on affected systems?

The impact of CVE-2026-40614 on affected systems includes the risk of crashes, data corruption, or remote code execution.

4

Which versions of PJSIP are affected by CVE-2026-40614?

PJSIP versions 2.16 and earlier are affected by CVE-2026-40614.

5

Is the Opus codec the only component affected by CVE-2026-40614?

Yes, the vulnerability in CVE-2026-40614 specifically affects the Opus codec decoding process within the PJSIP library.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203