{ "document": { "category": "csaf_security_advisory", "csaf_version": "2.0", "distribution": { "tlp": { "label": "WHITE", "url": "https://www.first.org/tlp/" } }, "lang": "en", "notes": [ { "category": "description", "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. 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 (\"> 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. 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.", "title": "Vulnerability Description" } ], "publisher": { "category": "other", "contact_details": "gdt@cpan.org", "name": "giterlizzi", "namespace": "https://github.com/giterlizzi/" }, "references": [ { "category": "self", "summary": "CPANSA-GD-2026-11526 JSON", "url": "https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-gd-2026-11526.json" }, { "category": "external", "summary": "https://github.com/lstein/Perl-GD/commit/67b163713c6c78dfeb693da0978ae934e5cd8210.patch", "url": "https://github.com/lstein/Perl-GD/commit/67b163713c6c78dfeb693da0978ae934e5cd8210.patch" }, { "category": "external", "summary": "https://metacpan.org/release/RURBAN/GD-2.86/changes", "url": "https://metacpan.org/release/RURBAN/GD-2.86/changes" }, { "category": "external", "summary": "http://www.openwall.com/lists/oss-security/2026/06/14/4", "url": "http://www.openwall.com/lists/oss-security/2026/06/14/4" }, { "category": "external", "summary": "https://lists.debian.org/debian-lts-announce/2026/06/msg00027.html", "url": "https://lists.debian.org/debian-lts-announce/2026/06/msg00027.html" }, { "category": "external", "summary": "CVE-2026-11526 (NVD)", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-11526" } ], "title": "GD vulnerability", "tracking": { "current_release_date": "2026-06-14T00:00:00", "generator": { "engine": { "name": "CSAF Perl Toolkit", "version": "0.26" } }, "id": "CPANSA-GD-2026-11526", "initial_release_date": "2026-06-14T00:00:00", "revision_history": [ { "date": "2026-06-14T00:00:00", "number": "1", "summary": "First release" } ], "status": "final", "version": "1" } }, "product_tree": { "branches": [ { "branches": [ { "category": "product_version_range", "name": "vers:cpan/<2.86", "product": { "name": "GD less than 2.86", "product_id": "CSAFPID-0001", "product_identification_helper": { "purl": "pkg:cpan/GD" } } }, { "category": "product_version_range", "name": "vers:cpan/>=2.86", "product": { "name": "GD greater than or equal 2.86", "product_id": "CSAFPID-0002", "product_identification_helper": { "purl": "pkg:cpan/GD" } } } ], "category": "product_name", "name": "GD" } ] }, "vulnerabilities": [ { "cve": "CVE-2026-11526", "cwe": { "id": "CWE-73", "name": "External Control of File Name or Path" }, "notes": [ { "category": "description", "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.", "title": "Vulnerability Description" } ], "product_status": { "fixed": [ "CSAFPID-0002" ], "known_affected": [ "CSAFPID-0001" ] }, "scores": [ { "cvss_v3": { "baseScore": 9.8, "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "version": "3.1" }, "products": [ "CSAFPID-0001" ] } ] } ] }