Description
GPAC is an open-source multimedia framework. In versions up to and including 26.02.0, a stack buffer overflow occurs during NHML file parsing in `src/filters/dmx_nhml.c`. The value of the xmlHeaderEnd XML attribute is copied from att->value into szXmlHeaderEnd[1000] using strcpy() without any length validation. If the input exceeds 1000 bytes, it overwrites beyond the stack buffer boundary. Commit 9bd7137fded2db40de61a2cf3045812c8741ec52 patches the issue.
Published: 2026-02-26
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

A stack buffer overflow occurs while parsing NHML files in GPAC’s demuxer. The xmlHeaderEnd attribute is copied without length checks into a 1000‑byte buffer. If an attacker supplies more than 1000 bytes, the copy overruns the stack, potentially corrupting memory and enabling arbitrary code execution within the GPAC process. The vulnerability is characterized as CWE‑121 and presents a functional flaw that can compromise the stability, confidentiality and integrity of the application.

Affected Systems

GPAC (gpac:gpac) versions up to and including 26.02.0 are affected. Users relying on the GPAC multimedia framework in any environment that processes NHML files should verify the installed version.

Risk and Exploitability

The CVSS score of 7.7 indicates a high severity due to likely remote exploitation through crafted input. The EPSS score of less than 1% shows that, as of the data provided, exploitation is not frequently observed, and the vulnerability is not listed in CISA’s KEV catalog. Attackers would need to provide a malicious NHML file—either locally or through any network service that invokes GPAC’s demuxer—an inference drawn from the description. With no monitoring or active exploitation data, the risk remains high until remediated.

Generated by OpenCVE AI on April 17, 2026 at 14:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the patch commit 9bd7137fded2db40de61a2cf3045812c8741ec52 by upgrading to GPAC 26.02.1 or later.
  • Rebuild GPAC from the latest source if an official release is not yet available.
  • If updating is not possible, restrict GPAC’s execution to trusted users or sandbox the application to limit the impact of potential code execution.

Generated by OpenCVE AI on April 17, 2026 at 14:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 11 Mar 2026 23:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:gpac:gpac:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Fri, 27 Feb 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 26 Feb 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Gpac
Gpac gpac
Vendors & Products Gpac
Gpac gpac

Thu, 26 Feb 2026 00:15:00 +0000

Type Values Removed Values Added
Description GPAC is an open-source multimedia framework. In versions up to and including 26.02.0, a stack buffer overflow occurs during NHML file parsing in `src/filters/dmx_nhml.c`. The value of the xmlHeaderEnd XML attribute is copied from att->value into szXmlHeaderEnd[1000] using strcpy() without any length validation. If the input exceeds 1000 bytes, it overwrites beyond the stack buffer boundary. Commit 9bd7137fded2db40de61a2cf3045812c8741ec52 patches the issue.
Title GPAC NHML Demuxer (dmx_nhml.c) Vulnerable to Stack Buffer Overflow
Weaknesses CWE-121
References
Metrics cvssV4_0

{'score': 7.7, '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:P'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-26T15:15:39.671Z

Reserved: 2026-02-24T02:32:39.799Z

Link: CVE-2026-27821

cve-icon Vulnrichment

Updated: 2026-02-26T15:15:22.144Z

cve-icon NVD

Status : Analyzed

Published: 2026-02-26T00:16:26.813

Modified: 2026-03-11T23:23:32.243

Link: CVE-2026-27821

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T14:45:21Z

Weaknesses