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

High 8.5 Published Updated

A heap buffer overflow in PJSIP's Opus codec allows attackers to execute arbitrary code or cause denial of service via crafted audio frames.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-40614?

CVE-2026-40614 is a high-severity memory corruption vulnerability in pjsip pjproject, published on 21 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

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.

Weakness: CWE-122

Which versions are affected by CVE-2026-40614?

It affects 1 product.

Products include Pjsip Pjsip.

How do I fix CVE-2026-40614?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-40614 being exploited?

There is no known exploitation of CVE-2026-40614 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2026-40614, DEBIAN-CVE-2026-40614, GHSA-j59p-4xrr-fp8g, UBUNTU-CVE-2026-40614.

Is CVE-2026-40614 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free