CVE-2026-4185

GPAC MP4Box swf_parse.c swf_def_bits_jpeg stack-based overflow

Published Mar 15, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A stack‑based buffer overflow exists in the GPAC MP4Box component within the function swf_def_bits_jpeg located in src/scene_manager/swf_parse.c. The overflow is triggered by malicious manipulation of the szName argument supplied when parsing a SWF file, allowing corruption of the call stack. If successfully exploited, the flaw can lead to remote code execution or a denial‑of‑service condition, and the CVE description confirms that the attack can be launched remotely and that a proof‑of‑concept exploit is publicly available. The weakness falls under the CWE categories 119 and 121.

Affected Systems

The vulnerability affects GPAC versions up to and including 2.5-DEV-rev2167-gcc9d617c0-master. All releases prior to the commit 8961c74f87ae3fe2d3352e622f7730ca96d50cf1 contain the flaw. The affected product is listed in the CPE string cpe:2.3:a:gpac:gpac:*:*:*:*:*:*:*:*, and any deployment that processes SWF files with MP4Box is potentially impacted.

Risk and Exploitability

The CVSS base score of 5.3 indicates a medium severity, but the EPSS score of less than 1% suggests a low probability of widespread exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires the ability to feed a crafted SWF file to the vulnerable parser, which can be performed remotely via any interface that accepts SWF input. Attackers who succeed can execute arbitrary code or cause a crash, but the low EPSS indicates that active attacks are currently rare. Awareness of this flaw and monitoring for exploit activity remains advisable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the GPAC patch identified by commit 8961c74f87ae3fe2d3352e622f7730ca96d50cf1 or upgrade to a release that includes this fix.
  • If an immediate upgrade is not feasible, disable the SWF file parsing functionality in MP4Box or ensure it runs in a restricted sandbox.
  • Regularly check the GPAC project repository or vendor advisories for additional updates or acknowledgments of this vulnerability.

Generated by OpenCVE AI on March 17, 2026 at 17:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title GPAC MP4Box swf_parse.c swf_def_bits_jpeg stack-based overflow
First Time appeared Gpac
Gpac gpac
Weaknesses CWE-119
CWE-121
CPEs cpe:2.3:a:gpac:gpac:*:*:*:*:*:*:*:*
Vendors & Products Gpac
Gpac gpac
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 17, 2026, 3:18 PM
Reserved
Mar 14, 2026, 10:01 PM
Status
Deferred
Published
Mar 16, 2026, 2:19 PM
Modified
Jun 17, 2026, 10:56 AM