{"id":"UBUNTU-CVE-2026-11526","details":"GD versions before 2.86 for Perl allow OS command injection and file overwrite via a 2-arg open() of filename arguments in _make_filehandle. GD::Image::_make_filehandle opens a filename argument with Perl's 2-arg open(), so a filename that begins or ends with a pipe (\"| cmd\", \"cmd |\") or begins with a redirect (\"\u003e path\", \"\u003e\u003e path\") is run as a command or redirect rather than opened as a file. _make_filehandle is the single open path behind every filename-accepting constructor (new, newFromPng, newFromJpeg, and the rest); the in-memory *Data variants do not open a path and are unaffected. Any caller that forwards untrusted input to one of these constructors as a pathname can run an arbitrary command or truncate a file under the process UID.","modified":"2026-06-30T18:16:00.520002189Z","published":"2026-06-14T12:16:00Z","related":["USN-8484-1"],"upstream":["CVE-2026-11526"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-11526"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-11526"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/41004664/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8484-1"}],"affected":[{"package":{"name":"libgd-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libgd-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.53-1build1","2.53-2","2.53-2build1","2.53-2.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.53-2.1","binary_name":"libgd-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-11526.json"}},{"package":{"name":"libgd-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libgd-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.66-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.66-1build1","binary_name":"libgd-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-11526.json"}},{"package":{"name":"libgd-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libgd-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.71-2","2.71-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgd-perl","binary_version":"2.71-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-11526.json"}},{"package":{"name":"libgd-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libgd-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.76-2ubuntu0.1"}]}],"versions":["2.73-1build2","2.76-2","2.76-2build1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.76-2ubuntu0.1","binary_name":"libgd-perl"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-11526.json"}},{"package":{"name":"libgd-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libgd-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-1ubuntu0.24.04.1"}]}],"versions":["2.76-4build1","2.78-1","2.78-1build1","2.78-1build2","2.78-1build3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.78-1ubuntu0.24.04.1","binary_name":"libgd-perl"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-11526.json"}},{"package":{"name":"libgd-perl","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libgd-perl?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-1ubuntu0.25.10.1"}]}],"versions":["2.78-1build4"],"ecosystem_specific":{"binaries":[{"binary_version":"2.78-1ubuntu0.25.10.1","binary_name":"libgd-perl"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-11526.json"}},{"package":{"name":"libgd-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libgd-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.84-2ubuntu0.1"}]}],"versions":["2.78-1build4","2.83-1","2.84-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libgd-perl","binary_version":"2.84-2ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-11526.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}