# CVE-2026-27821: GPAC NHML Demuxer (dmx_nhml.c) Vulnerable to Stack Buffer Overflow

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-26T00:08:39.924Z
- Modified: 2026-06-17T10:27:44.520Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gpac gpac: <= 26.02.0; up to 26.02.0

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gpac/gpac/security/advisories/GHSA-q7qh-8r2r-q559> (exploit, vendor-advisory)
- <https://github.com/gpac/gpac/commit/9bd7137fded2db40de61a2cf3045812c8741ec52> (patch)

## Sources

- CVE List: [CVE-2026-27821](https://www.cve.org/CVERecord?id=CVE-2026-27821), CVE Terms of Use, modified 2026-02-26
- NVD: [CVE-2026-27821](https://nvd.nist.gov/vuln/detail/CVE-2026-27821), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27821 · Whole record: https://cve.day/CVE-2026-27821.json · Rebuilt by cve.day 2026-11-25T22:59:14.922Z
