Skip to main content

Gpac CVE-2026-4185

| EUVDEUVD-2026-12241 LOW
Stack-based Buffer Overflow (CWE-121)
2026-03-15 VulDB
2.1
CVSS 4.0 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Stack 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.

Impact

CVSS 6.3 (Medium severity) with CVSS vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L reflects moderate risk: network-accessible (AV:N), low complexity (AC:L), but requires low-privilege authentication (PR:L) and no user interaction (UI:N). Exploitation impact is limited to single-user context (S:U) with partial confidentiality, integrity, and availability loss. The EPSS rating (E:P indicates Proof of Concept Exists) and public POC availability significantly elevate real-world risk despite the medium CVSS score. KEV/CISA tracking status is not explicitly stated, but the publicly available exploit increases prioritization urgency. For SSVC analysis: exploitation status is POC-PUBLIC (E:P), likely automatable for systems accepting untrusted SWF/MP4 files (automatable=true), technical impact is partial (code execution or DoS possible). Real-world risk is MODERATE-to-HIGH for organizations processing user-supplied media files or running MP4Box as a service, but LOW for isolated desktop users or internal use cases. This is a legitimate priority for media processing pipelines.

Exploit ScenarioDerived

An attacker with valid GPAC/MP4Box user credentials (or a service accepting authenticated file uploads) crafts a malicious SWF file containing a specially formatted JPEG bitmap definition with an oversized szName field. When MP4Box processes this file (e.g., mp4box malicious.swf -out output.mp4), the swf_def_bits_jpeg function fails to validate szName length and writes beyond the stack buffer. This triggers a stack-based buffer overflow, potentially allowing the attacker to: (1) overwrite adjacent stack variables to alter program control flow or leak sensitive data, (2) cause a denial of service via crash/exception, or (3) achieve limited code execution if stack canaries are absent or bypassable. The public POC (https://github.com/PeterXukt/test_pocs/blob/main/gpac/test.swf) provides a working test.swf that demonstrates the condition. Attack complexity is low (AC:L): the attacker simply needs to provide the malicious file to a system running vulnerable MP4Box.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 15, 2026

Stack-based buffer overflow vulnerability in GPAC's MP4Box component, specifically in the swf_def_bits_jpeg function of src/scene_manager/swf_parse.c, affecting versions up to 2.5-DEV-rev2167. An authenticated attacker can exploit this remotely by manipulating the szName argument to cause a stack overflow, resulting in information disclosure, data modification, or denial of service. A public proof-of-concept exists, and a vendor patch is available; exploitation requires valid credentials (CVSS 6.3 with authenticated access requirement).

RemediationAI

Immediate patching is required: Apply commit 8961c74f87ae3fe2d3352e622f7730ca96d50cf1 from the GPAC repository (https://github.com/gpac/gpac/commit/8961c74f87ae3fe2d3352e622f7730ca96d50cf1). Users should update GPAC to a version incorporating this patch (likely 2.5 or later stable release when available). Interim mitigations: (1) Disable SWF file processing in MP4Box if not required; (2) Restrict MP4Box access to trusted input files only; (3) Run MP4Box with minimal privileges and in isolated environments; (4) Implement input validation/sanitization for SWF files before processing; (5) Monitor for suspicious MP4/SWF file processing attempts. Verify patch application by checking the git history or version string post-update.

Affected VersionsENISA

GPAC 2.5-DEV-rev2167-gcc9d617c0-master

Affected Packages

euvd gpac 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

GPAC is an open-source multimedia framework used for MP4 and media processing. The vulnerable component MP4Box is a utility for manipulating ISO Base Media Files (MP4, MOV, etc.) and also processes SWF (Shockwave Flash) files. The vulnerability exists in the swf_parse.c module's swf_def_bits_jpeg function, which handles JPEG bitmap definitions within SWF files. The root cause is CWE-121 (Stack-based Buffer Overflow), where insufficient bounds checking on the szName parameter allows an attacker to write beyond allocated stack buffer boundaries. This is typical of unsafe string handling in C-based media parsers. The SWF file format is the attack vector—a specially crafted SWF file embedded in or processed by MP4Box can trigger the overflow.

Know when Gpac 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

NVD PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

6
Severity Changed
Apr 29, 2026 - 01:11 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:11 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVSS changed
Apr 22, 2026 - 21:37 NVD
6.3 (MEDIUM) 5.3 (MEDIUM)
PoC Detected
Mar 16, 2026 - 14:53 vuln.today
Public exploit code
Patch released
Mar 15, 2026 - 19:00 nvd
Patch available
CVE Published
Mar 15, 2026 - 18:32 nvd
MEDIUM 6.3

DescriptionCVE.org

A vulnerability was found in GPAC up to 2.5-DEV-rev2167-gcc9d617c0-master. This vulnerability affects the function swf_def_bits_jpeg of the file src/scene_manager/swf_parse.c of the component MP4Box. The manipulation of the argument szName results in stack-based buffer overflow. It is possible to launch the attack remotely. The exploit has been made public and could be used. The patch is identified as 8961c74f87ae3fe2d3352e622f7730ca96d50cf1. A patch should be applied to remediate this issue.

Executive ViewAI

Why It Matters

Organizations using GPAC should be aware of moderate risk from CVE-2026-4185, a stack-based buffer overflow vulnerability rated CVSS 6.3. Exploitation could cause memory corruption or application crashes. Proof-of-concept code is publicly available. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: enable ASLR/DEP, apply network segmentation.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
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 stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

More in Gpac

View all
CVE-2023-46932 CRITICAL POC
9.8 Dec 09

Heap Buffer Overflow vulnerability in GPAC version 2.3-DEV-rev617-g671976fcc-master, allows attackers to execute arbitra

CVE-2023-2840 CRITICAL POC
9.8 May 22

NULL Pointer Dereference in GitHub repository gpac/gpac prior to 2.2.2. Rated critical severity (CVSS 9.8), this vulnera

CVE-2022-36190 CRITICAL POC
9.8 Aug 17

GPAC mp4box 2.1-DEV-revUNKNOWN-master has a use-after-free vulnerability in function gf_isom_dovi_config_get. Rated crit

CVE-2022-1795 CRITICAL POC
9.8 May 18

Use After Free in GitHub repository gpac/gpac prior to v2.1.0-DEV. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2021-28300 CRITICAL POC
9.8 Apr 14

NULL Pointer Dereference in the "isomedia/track.c" module's "MergeTrack()" function of GPAC v0.5.2 allows attackers to e

CVE-2020-11558 CRITICAL POC
9.8 Apr 05

An issue was discovered in libgpac.a in GPAC 0.8.0, as demonstrated by MP4Box. Rated critical severity (CVSS 9.8), this

CVE-2018-13005 CRITICAL POC
9.8 Jun 29

An issue was discovered in MP4Box in GPAC 0.7.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2023-2838 CRITICAL POC
9.1 May 22

Out-of-bounds Read in GitHub repository gpac/gpac prior to 2.2.2. Rated critical severity (CVSS 9.1), this vulnerability

CVE-2023-0841 HIGH POC
8.8 Feb 15

A vulnerability, which was classified as critical, has been found in GPAC 2.3-DEV-rev40-g3602a5ded.c. Rated high severit

CVE-2022-4202 HIGH POC
8.8 Nov 29

A vulnerability, which was classified as problematic, was found in GPAC 2.1-DEV-rev490-g68064e101-master. Rated high sev

CVE-2021-21850 HIGH POC
8.8 Aug 25

An exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Adv

CVE-2021-21849 HIGH POC
8.8 Aug 25

An exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Adv

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