The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-65102

CVE-2025-65102: PJSIP Opus Buffer Overflow Vulnerability

CVE-2025-65102 is a buffer overflow vulnerability in PJSIP affecting Opus audio codec processing that can cause memory overwrites and application crashes. This article covers technical details, affected versions, and mitigation.

Published: May 11, 2026

CVE-2025-65102 Overview

CVE-2025-65102 affects PJSIP, an open source multimedia communication library widely used in Voice over IP (VoIP) applications. The flaw resides in the Opus Packet Loss Concealment (PLC) handling, where the decoder may zero-fill the input frame based on the decoder ptime while the actual input frame length is derived from the stream ptime. When these values diverge, the operation writes beyond the allocated buffer. The issue impacts PJSIP deployments using the Opus audio codec for receiving audio. Exploitation results in unexpected application termination through memory overwrite. The maintainers patched the issue in version 2.16.

Critical Impact

Remote attackers can trigger a memory overwrite in PJSIP-based VoIP applications using the Opus codec, leading to process termination and denial of service over the network without authentication.

Affected Products

  • PJSIP (pjproject) versions prior to 2.16
  • VoIP applications and SIP clients linking the PJSIP library with Opus codec support
  • Embedded communication stacks that consume PJSIP for real-time audio

Discovery Timeline

  • 2025-11-21 - CVE-2025-65102 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-65102

Vulnerability Analysis

The vulnerability is a buffer overflow [CWE-120] in the Opus decoder path of PJSIP's media handling. PJSIP allocates the input frame buffer based on the negotiated stream ptime (packetization time). When packet loss occurs, the Opus PLC logic zero-fills the input frame using the decoder's own ptime value. If the decoder ptime exceeds the stream ptime, the zero-fill operation writes past the end of the allocated frame buffer. The resulting memory corruption crashes the host process, producing a denial-of-service condition affecting audio reception.

Root Cause

The defect originates in pjmedia/src/pjmedia-codec/opus.c within the Opus decode routine. The function calculates the zero-fill length from the decoder configuration rather than validating it against the actual size of the input frame buffer. This boundary mismatch between two independent ptime values is the root cause of the out-of-bounds write.

Attack Vector

An unauthenticated remote attacker establishes or participates in a SIP session with a target PJSIP-based endpoint negotiating the Opus codec. By manipulating stream parameters or inducing packet loss conditions that force PLC activation, the attacker triggers the mismatched zero-fill. No user interaction is required beyond accepting or processing the inbound media stream.

c
     pjmedia_frame *inframe;
     int frm_size;
 
-    PJ_UNUSED_ARG(output_buf_len);
     pj_mutex_lock (opus_data->mutex);
 
     if (opus_data->dec_frame_index == -1) {

Source: PJSIP Opus codec patch commit. The patch removes the PJ_UNUSED_ARG(output_buf_len) macro, signaling that the decoder now consumes the output buffer length parameter to bound the zero-fill operation rather than ignoring it.

Detection Methods for CVE-2025-65102

Indicators of Compromise

  • Unexpected crashes or segmentation faults in processes linking PJSIP with Opus codec support
  • Repeated SIP session terminations correlated with Opus-negotiated media streams
  • Core dumps showing fault addresses inside or adjacent to pjmedia-codec/opus.c decoder routines

Detection Strategies

  • Inventory binaries linking libpjmedia and verify the PJSIP version string against 2.16
  • Inspect SIP/SDP traffic for Opus codec negotiation paired with unusual ptime attribute values
  • Correlate VoIP application crash telemetry with active Opus RTP sessions and packet-loss events

Monitoring Recommendations

  • Enable verbose PJSIP logging at the media transport layer to capture decoder state at the time of crash
  • Track process restart counts on SIP gateways, softphones, and PBX hosts
  • Monitor RTP streams for abnormal packet loss patterns that consistently precede service interruptions

How to Mitigate CVE-2025-65102

Immediate Actions Required

  • Upgrade PJSIP (pjproject) to version 2.16 or later across all dependent applications
  • Rebuild and redeploy any third-party software statically linking vulnerable PJSIP builds
  • Audit SIP-facing services for exposure to untrusted networks and restrict access where feasible

Patch Information

The fix is included in PJSIP 2.16. Review the PJSIP Security Advisory GHSA-w5vr-39x7-h8g5 and the upstream patch commit for technical details. The corrected decoder honors output_buf_len when performing PLC zero-fill, preventing writes beyond the allocated frame buffer.

Workarounds

  • Disable the Opus codec in PJSIP configuration and negotiate alternative codecs such as G.711 or G.722 until patches are deployed
  • Restrict inbound SIP signaling to trusted peers using firewall rules or session border controller policies
  • Align decoder and stream ptime configuration values where the codec stack permits explicit tuning
bash
# Disable Opus codec registration in PJSIP-based applications
# Example for pjsua-based clients
pjsua_codec_set_priority(pj_str("opus/48000/2"), PJMEDIA_CODEC_PRIO_DISABLED);

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechPjsip

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40614: PJSIP Opus Buffer Overflow Vulnerability

  • CVE-2026-40892: PJSIP Buffer Overflow Vulnerability

  • CVE-2026-34235: PJSIP Buffer Overflow Vulnerability

  • CVE-2026-32945: PJSIP Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English