Skip to content

CVE-2026-116140: ImageMagick (< 7.1.2-33 / < 6.9.13-58) Security Policy Bypass, MVG Code Injection & Stack Overflow Suite & Companion Flaws in adm-zip, ProjectSend, BookStack & AVideo (CVE-2026-116148, CVE-2026-116144, CVE-2026-116137, CVE-2026-116136, CVE-2026-116020)

Density:
C-Level Executive Briefing CVE-2026-116140 CRITICAL SCORE 94/100

Critical media-processing, archive-extraction, and enterprise document portal vulnerability wave flagged by VulnCheck Initial Access Intelligence on October 25-26, 2026. Across ten coordinated CVEs (CVE-2026-116140 through CVE-2026-116149, VulnCheck Weaponized 9.5), ImageMagick prior to 7.1.2-33 (7.x branch) and 6.9.13-58 (6.x branch) suffers from policy.xml delegate executable block bypasses (CVE-2026-116140), incomplete policy enforcement fixes (CVE-2026-116145), PS/PDF/XPS and Ultra HDR (UHDR) decoder policy bypasses (CVE-2026-116143, CVE-2026-116141), Magick Vector Graphics (MVG) encoder command injection (CVE-2026-116148), MVG decoder stack overflow and bzip2 stack buffer overflow (CVE-2026-116144, CVE-2026-116149), and Minimum-Bounding-Box heap over-read (CVE-2026-116142). Analyzed alongside Node.js adm-zip <= 0.6.1 duplicate-entry validation bypass via canonically equivalent names across entryTable and entryList (CVE-2026-116137), ProjectSend 2.0.0-2.7.1 FileVersions::link() authorization bypass (CVE-2026-116136), BookStack < 26.09.2 AttachmentController draft-page authorization bypass (CVE-2026-116020), and WWBN AVideo 26.0-29.3.0 comment Markdown stored XSS (CVE-2026-116139).

HYBRID

HERMES THREAT SCORE & MEDIA / ARCHIVE INGESTION PIPELINE EVALUATION

Target: ImageMagick policy.xml Delegate Parser & MVG Encoder/Decoder, Node.js adm-zip entryTable/entryList & ProjectSend / BookStack File Controllers
Confidence: 99%
94 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 19 / 20
Threat Activity 18 / 20
Weaponization 20 / 20
Exposure 19 / 20
Prevalence 20 / 20
Impact 18 / 20
Exploit Maturity 19 / 20
Attack Chain Potential 19 / 20
โš–๏ธ Divergence & Operational Rationale

Individual CVSS v3.1 scores across the October 25-26, 2026 ImageMagick and Node.js archive-handling disclosures range from 6.5 to 8.6, whereas VulnCheck flags the entire weaponized advisory batch at 9.5 (Critical). The Hermes Threat Score evaluates this media-processing, archive-extraction, and enterprise CMS suite at 94 (CRITICAL) with a Hermes Agentic Security Score (HASS) of 88 (HIGH). Enterprise web applications and multimodal AI pipelines rely heavily on two defensive controls when ingesting untrusted files: ImageMagick's policy.xml sandboxing and pre-extraction ZIP entry inspection in Node.js (adm-zip). Both controls fail simultaneously: (1) ImageMagick (< 7.1.2-33 / < 6.9.13-58) allows attackers to bypass policy.xml delegate executable blocks (CVE-2026-116140), bypass PS/PDF/XPS and UHDR policy caps (CVE-2026-116143, CVE-2026-116141), and inject arbitrary MVG drawing commands (CVE-2026-116148); and (2) Node.js adm-zip (<= 0.6.1) exhibits a parser differential between entryTable (getEntry() returns last duplicate) and entryList (extractAllTo() extracts first duplicate) across canonically equivalent filenames (CVE-2026-116137), allowing malicious ZIP payloads to evade pre-extraction security scanners.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-116140: ImageMagick (< 7.1.2-33 / < 6.9.13-58) Security Policy Bypass, MVG Code Injection & Stack Overflow Suite & Companion Flaws in adm-zip, ProjectSend, BookStack & AVideo (CVE-2026-116148, CVE-2026-116144, CVE-2026-116137, CVE-2026-116136, CVE-2026-116020)VULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTImageMagick Image Processing Suite
98% VERY_HIGH

Software platform affected by security vulnerabilities and agentic attack patterns.

๐Ÿ” Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in ImageMagick Image Processing Suite documented in Hermes dossier.”

Supporting Verified Evidence:

On October 25โ€“26, 2026, VulnCheck Initial Access Intelligence and the National Vulnerability Database (NVD) published a major wave of weaponized advisories impacting ImageMagick (< 7.1.2-33 and < 6.9.13-58), the Node.js adm-zip archive library (<= 0.6.1), and three widely deployed enterprise file-sharing, documentation, and video CMS platforms (ProjectSend, BookStack, and WWBN AVideo):

  1. CVE-2026-116140 through CVE-2026-116149 (ImageMagick < 7.1.2-33 and < 6.9.13-58 Security Policy Bypass, MVG Code Injection & Memory Corruption Suite):
    • CVE-2026-116140 (GHSA-528x-2384-jmxp โ€” Policy Bypass via Delegate Invocation Parsing) & CVE-2026-116145 (Security Policy Bypass via Incomplete Fix): Flaws in how ImageMagick parses delegate command strings allow an attacker to invoke external executables that were explicitly blocked by administrator rules in policy.xml.
    • CVE-2026-116148 (CWE-94 โ€” Code Injection via MVG Encoder Drawing Options): The Magick Vector Graphics (MVG) encoder fails to sanitize user-controlled drawing options before emitting them into generated MVG streams, enabling injection of arbitrary MVG drawing primitives (such as image Over ... external file reads or delegate triggers).
    • CVE-2026-116143 (GHSA-fp46-842c-2v83 โ€” Policy Bypass in PS, PDF, and XPS Decoders) & CVE-2026-116141 (GHSA-h3qx-937j-245g โ€” Policy Bypass in UHDR Decoder): Circumvents policy.xml scene list length and image dimension/extent limits in PostScript, PDF, XPS, and Ultra HDR decoders prior to resource allocation.
    • CVE-2026-116144 (MVG Decoder Stack Overflow), CVE-2026-116149 (bzip2 Stack Buffer Overflow), CVE-2026-116142 (Minimum-Bounding-Box Heap Over-Read), CVE-2026-116146 (MSL Memory Leak) & CVE-2026-116147 (DJVU Null Pointer Dereference): Critical memory corruption and denial-of-service primitives triggered by crafted image uploads.
  2. CVE-2026-116137 (CWE-436 / CWE-693, VulnCheck 9.5 Weaponized โ€” Node.js adm-zip <= 0.6.1 Duplicate-Entry Validation Bypass via Canonically Equivalent Names): Building upon CVE-2026-114104 (GHSA-p634-w6r4-rjp2), adm-zip through 0.6.1 maintains two unsynchronized internal data structures for ZIP entries: a sequential array (entryList, used by getEntries() and extractAllTo()) and a hash map (entryTable, used by getEntry(name)). By crafting a ZIP archive containing two entries with canonically equivalent paths (e.g., plugin/index.js first containing a malicious web shell, and ./plugin/index.js or plugin//index.js second containing benign code), security validators calling zip.getEntry() inspect the benign second entry while zip.extractAllTo() writes or overwrites the malicious entry on disk.
  3. CVE-2026-116136 (CWE-863 โ€” ProjectSend 2.0.0 through 2.7.1 Incorrect Authorization via FileVersions::link()), CVE-2026-116020 (BookStack < 26.09.2 AttachmentController Draft Page Authorization Bypass) & CVE-2026-116139 (WWBN AVideo 26.0 through 29.3.0 Comment Markdown Stored XSS): Allow authenticated low-privileged portal users to link arbitrary file versions across tenant boundaries in ProjectSend (CVE-2026-116136), access or modify attachments on unpublished draft pages in BookStack (CVE-2026-116020), and execute stored JavaScript payloads in AVideo administrator browsers (CVE-2026-116139).

1. CVE-2026-116140 & CVE-2026-116148: ImageMagick Delegate Policy Bypass & MVG Encoder Injection (< 7.1.2-33 / < 6.9.13-58)

Section titled โ€œ1. CVE-2026-116140 & CVE-2026-116148: ImageMagick Delegate Policy Bypass & MVG Encoder Injection (< 7.1.2-33 / < 6.9.13-58)โ€

In ImageMagick prior to 7.1.2-33 and 6.9.13-58, two distinct flaws in MagickCore/delegate.c and coders/mvg.c allow attackers to break out of intended image-processing constraints:

/* VULNERABLE PATTERN 1: ImageMagick < 7.1.2-33 / < 6.9.13-58 (CVE-2026-116140)
* Component: MagickCore/delegate.c โ€” Delegate Invocation Policy Check
* When an administrator blocks a delegate executable in policy.xml:
* <policy domain="delegate" rights="none" pattern="gs" />
* ImageMagick parses the delegate command string to extract the executable token
* for IsRightsAuthorized(DelegatePolicyDomain, ExecutePolicyRights, token).
* Discrepancies in quote/whitespace/path token parsing allowed a delegate invocation
* to mismatch the blocked policy pattern during check time while still executing
* the restricted binary via ExternalDelegateCommand()!
*/
/* VULNERABLE PATTERN 2: ImageMagick < 7.1.2-33 / < 6.9.13-58 (CVE-2026-116148)
* Component: coders/mvg.c โ€” WriteMVGImage() Drawing Options Injection
*/
static MagickBooleanType WriteMVGImage(const ImageInfo *image_info, Image *image, ExceptionInfo *exception) {
const char *value = GetImageArtifact(image, "mvg:vector-graphics");
/* FLAW (CWE-94): User-supplied drawing options / artifacts are written directly
* into the output MVG stream without neutralizing newline boundaries or embedded
* MVG drawing primitives (such as `push graphic-context` or `image Over 0,0 0,0 "ephemeral:/..."`)!
*/
(void) WriteBlobString(image, value);
return MagickTrue;
}

Simultaneously, in the Ultra HDR (coders/uhdr.c, CVE-2026-116141) and PostScript/PDF/XPS (coders/ps.c, coders/pdf.c, coders/xps.c, CVE-2026-116143) decoders, image dimension checks (AcquireImagePixels / SetImageExtent) and scene range limits were evaluated after initial buffer allocation or scene iteration began, allowing crafted headers to bypass max-width, max-height, and list-length policies in policy.xml.

2. CVE-2026-116137: Node.js adm-zip (<= 0.6.1) Duplicate-Entry Validation Bypass via Canonically Equivalent Names

Section titled โ€œ2. CVE-2026-116137: Node.js adm-zip (<= 0.6.1) Duplicate-Entry Validation Bypass via Canonically Equivalent Namesโ€

In Node.js applications (such as CMS plugin installers, serverless function uploaders, and AI skill package loaders) that use adm-zip (<= 0.6.1), developers commonly validate an uploaded ZIP archive before extraction by looking up specific entries or iterating names. Even after initial duplicate-name fixes in 0.6.1, adm-zip failed to canonicalize equivalent relative path representations (./file.js, a//b.js, a/./b.js) when populating entryTable vs. extracting entryList:

// VULNERABLE PATTERN: Node.js adm-zip <= 0.6.1 (CVE-2026-116137)
// Parser differential between entryTable lookup and filesystem path resolution during extraction
const AdmZip = require('adm-zip');
function validateAndExtractPlugin(zipBuffer, targetDir) {
const zip = new AdmZip(zipBuffer);
// Attacker's ZIP contains two canonically equivalent entries:
// Entry 1: "manifest.json" -> Benign manifest
// Entry 2: "./init.js" -> MALICIOUS RCE PAYLOAD (stored under key "./init.js" in entryTable)
// Entry 3: "init.js" -> BENIGN SCRIPT (stored under key "init.js" in entryTable)
// STEP 1 (Validation): Security scanner inspects zip.getEntry("init.js")
const initEntry = zip.getEntry("init.js");
if (containsForbiddenCode(initEntry.getData().toString('utf8'))) {
throw new Error("Malicious plugin rejected!");
}
// STEP 2 (Extraction โ€” CWE-436): extractAllTo() resolves both "./init.js" and "init.js"
// to the EXACT SAME canonical filesystem path (`${targetDir}/init.js`)!
// Depending on entry ordering and overwrite flags, the uninspected malicious payload
// is written directly to disk!
zip.extractAllTo(targetDir, true);
}

3. CVE-2026-116136 (ProjectSend <= 2.7.1) & CVE-2026-116020 (BookStack < 26.09.2)

Section titled โ€œ3. CVE-2026-116136 (ProjectSend <= 2.7.1) & CVE-2026-116020 (BookStack < 26.09.2)โ€
  • ProjectSend (2.0.0 through 2.7.1, CVE-2026-116136): In FileVersions::link(), authenticated staff/uploader users can link a newly uploaded file version to an existing file record by ID without verifying that the caller owns or has edit permissions on the target parent fileโ€”allowing attackers to replace confidential client downloads or link unauthorized files across accounts. Fixed in ProjectSend 2.7.2.
  • BookStack (< 26.09.2, CVE-2026-116020): In AttachmentController, attachment operations failed to verify whether the parent page was an unpublished draft owned by another user, allowing authenticated users with attachment permissions to read or modify attachments belonging to private draft pages by enumerating attachment IDs. Fixed in BookStack 26.09.2.
flowchart TD
subgraph ImageMagickSuite["CVE-2026-116140 to CVE-2026-116149: ImageMagick (< 7.1.2-33 / < 6.9.13-58)"]
I1["CVE-2026-116140 / 116145: Delegate Invocation Parsing Bypasses policy.xml Executable Blocks"]
I2["CVE-2026-116148: Unsanitized Drawing Options Inject Arbitrary MVG Commands in WriteMVGImage()"]
I3["CVE-2026-116143 / 116141 / 116144 / 116149: PS/PDF/XPS & UHDR Policy Bypass + MVG/bzip2 Stack Overflow"]
I1 --> I2 --> I3
end
subgraph AdmZipPortals["CVE-2026-116137 (adm-zip <= 0.6.1) & CVE-2026-116136 / 116020"]
Z1["CVE-2026-116137: Canonically Equivalent ZIP Entries ('./init.js' vs 'init.js')<br/>getEntry() Validates Benign Entry -> extractAllTo() Writes Malicious Payload"]
P1["CVE-2026-116136 (ProjectSend <= 2.7.1 FileVersions::link) &<br/>CVE-2026-116020 (BookStack < 26.09.2 Draft Page AttachmentController Bypass)"]
end
style I1 fill:#ff1a1a,stroke:#800000,color:#ffffff
style I2 fill:#ff4d4d,stroke:#990000,color:#ffffff
style Z1 fill:#ff1a1a,stroke:#800000,color:#ffffff
style P1 fill:#ff6600,stroke:#993300,color:#ffffff

To detect exploitation of the ImageMagick policy bypass and MVG injection suite (CVE-2026-116140 / CVE-2026-116148) and Node.js adm-zip duplicate-entry archives (CVE-2026-116137), deploy the following detection artifacts:

title: ImageMagick Unexpected Delegate Child Process Execution Bypassing policy.xml (CVE-2026-116140 / CVE-2026-116145 / CVE-2026-116148)
id: 116140c3-2026-4f91-8a22-imagemagick26
status: experimental
description: Detects ImageMagick (magick, convert, identify, mogrify) or web server workers linked against libMagickCore spawning external delegate binaries (Ghostscript, curl, wget, sh, bash, ffmpeg) indicative of policy.xml delegate bypass or MVG injection.
references:
- https://vulncheck.com/advisories/imagemagick-before-6.9.13-58-and-7-x-before-7.1.2-33-policy-bypass-via-delegate-invocation-parsing
- https://vulncheck.com/advisories/imagemagick-before-6.9.13-58-and-7-x-before-7.1.2-33-code-injection-via-mvg-encoder-drawing-options
author: Hermes Threat Intelligence
date: 2026/10/26
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentImage|endswith:
- '/magick'
- '/convert'
- '/identify'
- '/mogrify'
- '/php-fpm'
- '/node'
- '/python3'
selection_delegate_child:
Image|endswith:
- '/gs'
- '/gswin64c.exe'
- '/sh'
- '/bash'
- '/curl'
- '/wget'
- '/bzip2'
CommandLine|contains:
- '/tmp/magick-'
- '-q -dQUIET -dSAFER'
- 'ephemeral:'
- 'msl:'
- 'mvg:'
condition: selection_parent and selection_delegate_child
falsepositives:
- Environments where Ghostscript PDF rendering is intentionally permitted by policy.xml
level: high
tags:
- attack.execution
- attack.defense_evasion
- attack.t1203
- cve.2026-116140
- cve.2026-116145
- cve.2026-116148

  1. Upgrade ImageMagick to >= 7.1.2-33 (7.x) or >= 6.9.13-58 (6.x) (CVE-2026-116140 โ€“ CVE-2026-116149):
    • Upgrade all ImageMagick binaries and libMagickCore / libMagickWand shared libraries to 7.1.2-33 (for 7.x series) or 6.9.13-58 (for 6.x series) or later.
    • Maintain a strict defense-in-depth /etc/ImageMagick-7/policy.xml configuration that disables MVG, MSL, PS, PDF, XPS, DJVU, and UHDR coders (rights="none") when only web raster formats (JPEG, PNG, WEBP, AVIF) are required.
  2. Patch Node.js adm-zip to > 0.6.1 & Enforce Canonical ZIP Entry Rejection (CVE-2026-116137):
    • Upgrade adm-zip past 0.6.1 (>= 0.6.2) or enforce a pre-extraction validator over zip.getEntries() that canonicalizes every entry name (path.posix.normalize(entry.entryName).replace(/^(\.\/)+/, '')) and immediately rejects any archive containing duplicate canonical paths or .. segments.
  3. Update ProjectSend (>= 2.7.2), BookStack (>= 26.09.2) & WWBN AVideo (>= 29.3.1):
    • Upgrade ProjectSend to 2.7.2 (CVE-2026-116136), BookStack to 26.09.2 (CVE-2026-116020), and WWBN AVideo to 29.3.1 (CVE-2026-116139).