Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 89%

CVE-2026-40614: CWE-122: Heap-based Buffer Overflow in pjsip pjproject

0
High
VulnerabilityCVE-2026-40614cvecve-2026-40614cwe-122
Published: Tue Apr 21 2026 (04/21/2026, 18:04:15 UTC)
Source: CVE Database V5
Vendor/Project: pjsip
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/29/2026, 11:36:51 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses