CVE-2026-40614: CWE-122: Heap-based Buffer Overflow in pjsip pjproject
CVE-2026-40614 is a heap-based buffer overflow vulnerability in the pjsip pjproject library versions 2. 16 and earlier. It arises from insufficient buffer size validation when decoding Opus audio frames, where the allocated buffer is smaller than the maximum possible encoded frame size. This causes unsafe memory copying operations leading to a heap overflow. The vulnerability has a high severity with a CVSS score of 8. 5. No official patch or remediation guidance is currently available from the vendor.
AI Analysis
Technical Summary
The vulnerability in pjsip pjproject (<= 2.16) involves a heap-based buffer overflow in the Opus codec decode path. The FEC decode buffers are allocated using a formula derived from PCM parameters, resulting in a buffer size (e.g., 960 bytes at 8 kHz mono) smaller than the maximum encoded frame size (1280 bytes). The codec_decode() function performs three pj_memcpy() calls copying input->size bytes without bounds checking, which can overflow the allocated buffer. This is classified as CWE-122 (Heap-based Buffer Overflow).
Potential Impact
Successful exploitation of this vulnerability could lead to memory corruption due to heap overflow, potentially causing application crashes or enabling an attacker to execute arbitrary code with the privileges of the affected application. The CVSS 4.0 vector indicates local attack vector with low attack complexity, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider avoiding use of affected versions (<= 2.16) or applying any available workarounds from the vendor. Monitor official pjsip channels for updates.
CVE-2026-40614: CWE-122: Heap-based Buffer Overflow in pjsip pjproject
Description
CVE-2026-40614 is a heap-based buffer overflow vulnerability in the pjsip pjproject library versions 2. 16 and earlier. It arises from insufficient buffer size validation when decoding Opus audio frames, where the allocated buffer is smaller than the maximum possible encoded frame size. This causes unsafe memory copying operations leading to a heap overflow. The vulnerability has a high severity with a CVSS score of 8. 5. No official patch or remediation guidance is currently available from the vendor.
CVSS v4.0
Score 8.5high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in pjsip pjproject (<= 2.16) involves a heap-based buffer overflow in the Opus codec decode path. The FEC decode buffers are allocated using a formula derived from PCM parameters, resulting in a buffer size (e.g., 960 bytes at 8 kHz mono) smaller than the maximum encoded frame size (1280 bytes). The codec_decode() function performs three pj_memcpy() calls copying input->size bytes without bounds checking, which can overflow the allocated buffer. This is classified as CWE-122 (Heap-based Buffer Overflow).
Potential Impact
Successful exploitation of this vulnerability could lead to memory corruption due to heap overflow, potentially causing application crashes or enabling an attacker to execute arbitrary code with the privileges of the affected application. The CVSS 4.0 vector indicates local attack vector with low attack complexity, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should consider avoiding use of affected versions (<= 2.16) or applying any available workarounds from the vendor. Monitor official pjsip channels for updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-14T14:07:59.642Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e7c5ee19fe3cd2cdf0bac2
Added to database: 4/21/2026, 6:46:06 PM
Last enriched: 4/29/2026, 11:36:51 AM
Last updated: 6/6/2026, 6:25:35 AM
Views: 79
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.