{"id":"UBUNTU-CVE-2026-27821","details":"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-\u003evalue 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.","modified":"2026-04-22T16:27:38.933897Z","published":"2026-02-26T00:16:00Z","upstream":["CVE-2026-27821"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-27821"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-27821"},{"type":"REPORT","url":"https://github.com/gpac/gpac/commit/9bd7137fded2db40de61a2cf3045812c8741ec52"},{"type":"REPORT","url":"https://github.com/gpac/gpac/security/advisories/GHSA-q7qh-8r2r-q559"}],"affected":[{"package":{"name":"gpac","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/gpac@0.5.0+svn4288~dfsg1-4ubuntu1+esm2?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.0+svn4288~dfsg1-1ubuntu1","0.5.0+svn4288~dfsg1-4","0.5.0+svn4288~dfsg1-4ubuntu1","0.5.0+svn4288~dfsg1-4ubuntu1+esm1","0.5.0+svn4288~dfsg1-4ubuntu1+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"gpac","binary_version":"0.5.0+svn4288~dfsg1-4ubuntu1+esm2"},{"binary_name":"gpac-modules-base","binary_version":"0.5.0+svn4288~dfsg1-4ubuntu1+esm2"},{"binary_version":"0.5.0+svn4288~dfsg1-4ubuntu1+esm2","binary_name":"libgpac2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27821.json"}},{"package":{"name":"gpac","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/gpac@0.5.2-426-gc5ad4e4+dfsg5-1ubuntu0.1+esm2?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.2-426-gc5ad4e4+dfsg5-1build1","0.5.2-426-gc5ad4e4+dfsg5-1ubuntu0.1","0.5.2-426-gc5ad4e4+dfsg5-1ubuntu0.1+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"gpac","binary_version":"0.5.2-426-gc5ad4e4+dfsg5-1ubuntu0.1+esm2"},{"binary_name":"gpac-modules-base","binary_version":"0.5.2-426-gc5ad4e4+dfsg5-1ubuntu0.1+esm2"},{"binary_name":"libgpac4","binary_version":"0.5.2-426-gc5ad4e4+dfsg5-1ubuntu0.1+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27821.json"}},{"package":{"name":"gpac","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/gpac@0.5.2-426-gc5ad4e4+dfsg5-3ubuntu0.1+esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.2-426-gc5ad4e4+dfsg5-3","0.5.2-426-gc5ad4e4+dfsg5-3ubuntu0.1","0.5.2-426-gc5ad4e4+dfsg5-3ubuntu0.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"gpac","binary_version":"0.5.2-426-gc5ad4e4+dfsg5-3ubuntu0.1+esm1"},{"binary_name":"gpac-modules-base","binary_version":"0.5.2-426-gc5ad4e4+dfsg5-3ubuntu0.1+esm1"},{"binary_name":"libgpac4","binary_version":"0.5.2-426-gc5ad4e4+dfsg5-3ubuntu0.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27821.json"}},{"package":{"name":"gpac","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/gpac@0.5.2-426-gc5ad4e4+dfsg5-5ubuntu0.1~esm2?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.2-426-gc5ad4e4+dfsg5-4ubuntu1","0.5.2-426-gc5ad4e4+dfsg5-5","0.5.2-426-gc5ad4e4+dfsg5-5ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"gpac","binary_version":"0.5.2-426-gc5ad4e4+dfsg5-5ubuntu0.1~esm2"},{"binary_name":"gpac-modules-base","binary_version":"0.5.2-426-gc5ad4e4+dfsg5-5ubuntu0.1~esm2"},{"binary_name":"libgpac4","binary_version":"0.5.2-426-gc5ad4e4+dfsg5-5ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27821.json"}},{"package":{"name":"gpac","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/gpac@2.0.0+dfsg1-2ubuntu0.1~esm2?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1+dfsg1-4","1.0.1+dfsg1-5","2.0.0+dfsg1-2","2.0.0+dfsg1-2ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"gpac","binary_version":"2.0.0+dfsg1-2ubuntu0.1~esm2"},{"binary_name":"gpac-modules-base","binary_version":"2.0.0+dfsg1-2ubuntu0.1~esm2"},{"binary_name":"libgpac11","binary_version":"2.0.0+dfsg1-2ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27821.json"}},{"package":{"name":"gpac","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/gpac@2.2.1+dfsg1-3.1ubuntu0.1~esm2?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.1+dfsg1-3","2.2.1+dfsg1-3.1","2.2.1+dfsg1-3.1build1","2.2.1+dfsg1-3.1build2","2.2.1+dfsg1-3.1ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"gpac","binary_version":"2.2.1+dfsg1-3.1ubuntu0.1~esm2"},{"binary_name":"gpac-modules-base","binary_version":"2.2.1+dfsg1-3.1ubuntu0.1~esm2"},{"binary_name":"libgpac12t64","binary_version":"2.2.1+dfsg1-3.1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27821.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}