{"id":"CVE-2026-11526","aliases":["CVE-2026-11526"],"related":[],"kind":"vulnerability","state":"published","title":"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","summary":"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.\n\nGD::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 (\"> path\", \">> 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.\n\nAny 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nGD::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 (\"> path\", \">> 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.\n\nAny 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.","source":"cvelist"},{"lang":"es","text":"Las versiones de GD anteriores a la 2.86 para Perl permiten la inyección de comandos del sistema operativo y la sobrescritura de archivos a través de una función open() de 2 argumentos de los argumentos de nombre de archivo en _make_filehandle.\n\nGD::Image::_make_filehandle abre un argumento de nombre de archivo con la función open() de 2 argumentos de Perl, por lo que un nombre de archivo que comienza o termina con una tubería ('| cmd', 'cmd |') o comienza con una redirección ('> path', '>> path') se ejecuta como un comando o redirección en lugar de abrirse como un archivo. _make_filehandle es la única ruta de apertura detrás de cada constructor que acepta nombres de archivo (new, newFromPng, newFromJpeg y el resto); las variantes Data en memoria no abren una ruta y no se ven afectadas.\n\nCualquier llamador que reenvíe entrada no confiable a uno de estos constructores como una ruta de archivo puede ejecutar un comando arbitrario o truncar un archivo bajo el UID del proceso.","source":"nvd"}],"published":"2026-06-14T11:39:21.122Z","modified":"2026-07-23T10:10:00.170Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-73","CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"2.86","status":"affected"}],"vendor":"RURBAN","product":"GD","package":"GD","repo":"https://github.com/lstein/Perl-GD","source":"cvelist"}],"references":[{"url":"https://github.com/lstein/Perl-GD/commit/67b163713c6c78dfeb693da0978ae934e5cd8210.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/RURBAN/GD-2.86/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/14/4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/06/msg00027.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-06-15T16:17:04.865Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-11526","url":"https://www.cve.org/CVERecord?id=CVE-2026-11526","licence":"CVE Terms of Use","modified":"2026-06-21T13:34:16.065Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-11526","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-11526","licence":"Public domain","modified":"2026-07-23T10:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:24.617Z","epss":{"score":0.01353,"percentile":0.72379,"date":"2026-12-01T12:00:22.000Z"}}