Skip to main content

PJSIP CVE-2026-77396

| EUVDEUVD-2026-83196 MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-09-18 GitHub_M
6.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft AVI with oversized video chunk length
  2. Delivery
    Deliver file to PJSIP-based application
  3. Exploit
    Application plays file / pulls frames
  4. Execution
    avi_get_frame copies ch.len past frame buffer
  5. Persist
    Heap out-of-bounds write corrupts memory
  6. Impact
    Process crash or memory-corruption / potential code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the victim application to load and play (or pull frames from) an attacker-supplied AVI file via PJSIP's pjmedia AVI player - exploitation is local and file-driven, gated by passive user interaction (UI:P), not remote-unauthenticated. The dangerous configuration is a PRODUCTION RELEASE BUILD, where pj_assert() is compiled out and the size check that limits impact in debug builds does not run. Impact is strongest for applications that accept AVI media from untrusted or remote sources (relays, transcoders, user-uploaded media); pure local playback of trusted files typically yields only a crash. No fixed version is available, so mitigation requires backporting commit 7ecc6584 or blocking untrusted AVI input. Affected: pjproject 2.17 and earlier.

Impact

This is a real but bounded issue rather than an internet-facing emergency. The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H = 6.9) is consistent with the description: exploitation is LOCAL and requires the victim application to load/play an attacker-crafted AVI file (passive user interaction), producing memory corruption (integrity/availability high) with no confidentiality impact. There is no EPSS score, no CISA KEV listing, and no public POC in the provided data, so exploitation status is 'no public exploit identified at time of analysis.' A GitHub advisory (GHSA-6p2p-5wf8-h5hr) and a fix commit exist, which confirms the technical validity of the bug, but the description explicitly states NO fixed release version is available yet - meaning defenders cannot simply patch to a tagged version and must either backport commit 7ecc6584 or avoid untrusted AVI input. The most important nuance: the pre-existing pj_assert() size check is a no-op in production release builds (assertions disabled), so shipped software is exactly the configuration that is vulnerable while debug builds appear safe. Real risk is elevated for any deployment that pulls AVI frames from untrusted/remote sources (e.g., media relay, transcoding, or file-driven playback of user-supplied media); for pure local playback of trusted files the practical impact is a crash/DoS.

Exploit ScenarioDerived

An attacker crafts an AVI file whose declared video-chunk length exceeds the frame buffer capacity derived from the file's own declared media dimensions, then delivers it to a PJSIP-based application (softphone, media gateway, or transcoder) that plays the file or pulls its frames. When avi_get_frame() copies ch.len bytes into frame->buf, it writes past the heap allocation, corrupting heap memory. No public exploit code is identified at time of analysis, but a vendor advisory and fix commit confirm the flaw.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 18, 2026

Heap-based out-of-bounds write in the PJSIP pjmedia AVI player (pjproject 2.17 and earlier) lets a crafted AVI file overwrite memory beyond a frame buffer when an application plays the file or pulls its frames. The buffer capacity is derived from the video dimensions declared in the file, while the copy length is taken from the file's own chunk header, so a malicious header produces an attacker-controlled write; the protection that would normally catch this is a pj_assert() that is compiled out of production release builds. The issue is local and file-driven, requiring the victim to open the media (CVSS v3.1 AV:L/UI:R, PR:N per the assessed vector), with crash-level impact for ordinary local playback and full memory corruption for applications that ingest untrusted AVI from relays, transcoders or user uploads; no public exploit code has been identified at time of analysis, no CISA KEV listing applies, and no fixed release version is available as of this review.

RemediationAI

No vendor-released patch version has been confirmed as of this review, so the recommended action is to backport upstream commit 7ecc6584969a923c4190b6912afbf5952b5a4b9f (https://github.com/pjsip/pjproject/commit/7ecc6584969a923c4190b6912afbf5952b5a4b9f) into your pjproject tree; the change clamps the read length to frame->size before copying into the frame buffer and seeks past any unread chunk bytes to preserve file alignment, and it removes reliance on pj_assert, which is compiled out of release builds. Note the trade-off: with the clamp in place, oversized video chunks are truncated and logged rather than rejected, so a file using this condition will play with a truncated frame instead of failing outright. Until the backport is applied, block the reachable attack surface by refusing untrusted AVI input to the pjmedia AVI player: disable or unregister AVI playback in applications that do not require it, restrict media upload, relay and transcoding paths to vetted container formats, and quarantine uploads to an isolated conversion service with no shared heap state; be aware that format blocking may reject legitimate AVI content and requires knowing every code path that can select the AVI player. A wrapper-level pre-parse check that rejects AVI files whose dwChunkLength exceeds the frame buffer size implied by the declared dimensions provides an equivalent guard, but it must live in the caller because the vulnerable comparison is internal to avi_player.c. Advisory details and any future fixed release will appear in GHSA-6p2p-5wf8-h5hr (https://github.com/pjsip/pjproject/security/advisories/GHSA-6p2p-5wf8-h5hr); validate that applying the commit does not alter expected media pipeline behavior in your version before rolling it out, since a released patched version is not independently confirmed.

Affected VersionsENISA

pjproject ≤ 2.17

Affected Packages

euvd pjproject no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PJSIP is a C multimedia communication library (pjproject) whose AVI playback support lives in pjmedia/src/pjmedia/avi_player.c and parses RIFF/AVI container structure. The vulnerability is CWE-122 (heap-based buffer overflow): the player allocates frame->buf with a size derived from the video dimensions declared in the AVI header, then, when it encounters a video chunk, uses the file-supplied chunk length (ch.len) as the number of bytes to read into that buffer via file_read3. Because both the buffer capacity and the copy length originate from attacker-controlled file content and are never reconciled, a chunk declaring more bytes than the buffer holds writes past the end of the heap allocation. The only guard in the pre-fix code path is pj_assert(frame->size >= ch.len), and pj_assert is a no-op in release builds where assertions are disabled, making production builds the exploitable configuration; debug builds may abort instead. The upstream commit 7ecc6584969a923c4190b6912afbf5952b5a4b9f addresses the root cause by clamping read_len to frame->size before the read and then seeking forward past the unread remainder of the chunk so the file position stays aligned to the next chunk, replacing an assertion-based check with an unconditional runtime bounds check. The CPE entry cpe:2.3:a:pjsip:pjproject:*:*:*:*:*:*:*:* reflects an unresolved version range, consistent with the absence of a tagged patched release at review time.

Know when Pjsip gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.1 HIGH

Attacker-supplied AVI must be played locally (AV:L, UI:R); no auth needed (PR:N); heap corruption gives I:H/A:H with no disclosure (C:N).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.1 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

PJSIP is a free and open source multimedia communication library written in C. In 2.17 and earlier, the PJSIP AVI parser in pjmedia/src/pjmedia/avi_player.c uses an input-file video chunk length as the number of bytes copied into a frame buffer whose capacity is derived from the declared media dimensions. A crafted AVI file can therefore cause an attacker-controlled out-of-bounds write past the heap allocation when an application plays the file or pulls its frames. The existing size assertion does not protect production release builds, where assertions are disabled. Typical local playback can crash the process, while applications that accept untrusted AVI sources expose a stronger memory-corruption condition. No fixed version is available as of this review.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
PJSIP is a widely embedded SIP/VoIP library (Asterisk, softphones), though AVI-playback path is niche
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

More in Pjsip

View all
CVE-2021-43845 CRITICAL POC
9.1 Dec 27

PJSIP is a free and open source multimedia communication library. Rated critical severity (CVSS 9.1), this vulnerability

CVE-2021-21375 MEDIUM POC
6.5 Mar 10

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2017-16872 CRITICAL
9.8 Nov 17

An issue was discovered in Teluu pjproject (pjlib and pjlib-util) in PJSIP before 2.7.1. Rated critical severity (CVSS 9

CVE-2026-25994 CRITICAL POC
9.8 Feb 11

Buffer overflow in PJSIP multimedia library version 2.16 and earlier in PJNATH ICE implementation. Patch available. Affe

CVE-2026-32945 CRITICAL
9.8 Mar 20

Heap overflow in PJSIP 2.16 and earlier DNS parser allows unauthenticated remote attackers to achieve code execution wit

CVE-2023-38703 CRITICAL
9.8 Oct 06

PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, a

CVE-2022-23547 CRITICAL
9.8 Dec 23

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-23537 CRITICAL
9.8 Dec 20

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-39244 CRITICAL
9.8 Oct 06

PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this

CVE-2022-31031 CRITICAL
9.8 Jun 09

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-24786 CRITICAL
9.8 Apr 06

PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this

CVE-2022-24754 CRITICAL
9.8 Mar 11

PJSIP is a free and open source multimedia communication library written in C language. Rated critical severity (CVSS 9.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy