CVE-2026-11526
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGD 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe GD library for Perl versions before 2.86 uses unsafe 2-arg open() in _make_filehandle() to open file paths, allowing attackers to inject shell commands via pipe characters (|) or overwrite files via redirect operators (>) in filenames passed to image constructors like new(), newFromPng(), and newFromJpeg().
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed GD Perl library versionRun `perl -MGD -e 'print $GD::VERSION'` or `perl -MGD::Simple -e 'print $GD::Simple::VERSION'` to get the installed version numberAffected if Version is below 2.86 (e.g., 2.85, 2.84, etc.)
-
Identify GD::Image constructor calls with filename argumentsSearch codebase for patterns like GD::Image->new(, newFromPng(, newFromJpeg(, newFromGif(, newFromTiff(, newFromBmp(, and similar constructors that accept a filename as the first argumentAffected if Code uses any GD::Image constructor that accepts a filename string rather than a filehandle or raw data
-
Determine if filename arguments come from untrusted inputTrace the source of each filename passed to GD::Image constructors - check if values originate from user input, HTTP parameters, uploaded files, or external data without sanitizationAffected if Filename arguments are constructed from user-controlled data or external sources without validation
-
Inspect filenames for shell metacharactersFor any identified GD filename arguments, examine whether they could contain pipe (|) or redirect (>, >>) characters at the start or end of the stringAffected if Filenames could contain characters like |, >, or >> without being explicitly validated as safe
-
Check for dynamic filename constructionSearch for code that concatenates or interpolates variables into filename strings passed to GD constructors, such as `$dir/$file`, `$filename . $ext`, or similar patternsAffected if Filenames are built dynamically from multiple parts rather than hardcoded safe constants
You are affected if GD version is below 2.86 AND your code passes user-influenced or dynamically constructed filenames containing shell metacharacters (|, >, >>) to any GD::Image filename-accepting constructor.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade GD to version 2.86 or later, which replaces 2-arg open() with safe 3-arg open(). If upgrade is not possible, validate that all filename arguments do not contain pipe or redirect characters before passing to GD constructors.
GD 2.86
- Check current GD version: perl -MGD -e 'print "$GD::VERSION\n"'
- Upgrade GD to version 2.86 or later using your Perl module manager (e.g., 'cpan -i GD' or 'cpanm GD' or via system package manager such as apt/yum/dnf)
- Verify the fixed version is installed: perl -MGD -e 'print "$GD::VERSION\n"' (should show 2.86 or higher)
- If you maintain Perl applications using GD, audit code that passes filenames to constructors (new, newFromPng, newFromJpeg, etc.) to ensure untrusted input is not passed directly as file paths
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation2.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,160.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-11526 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-11526 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data