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)
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).
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 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.
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
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.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
Executive Summary
Section titled โExecutive Summaryโ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):
- CVE-2026-116140 through CVE-2026-116149 (ImageMagick
< 7.1.2-33and< 6.9.13-58Security 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 inpolicy.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 asimage 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): Circumventspolicy.xmlscene 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.
- CVE-2026-116137 (
CWE-436/CWE-693, VulnCheck 9.5 Weaponized โ Node.jsadm-zip <= 0.6.1Duplicate-Entry Validation Bypass via Canonically Equivalent Names): Building uponCVE-2026-114104(GHSA-p634-w6r4-rjp2),adm-zipthrough0.6.1maintains two unsynchronized internal data structures for ZIP entries: a sequential array (entryList, used bygetEntries()andextractAllTo()) and a hash map (entryTable, used bygetEntry(name)). By crafting a ZIP archive containing two entries with canonically equivalent paths (e.g.,plugin/index.jsfirst containing a malicious web shell, and./plugin/index.jsorplugin//index.jssecond containing benign code), security validators callingzip.getEntry()inspect the benign second entry whilezip.extractAllTo()writes or overwrites the malicious entry on disk. - CVE-2026-116136 (
CWE-863โ ProjectSend2.0.0through2.7.1Incorrect Authorization viaFileVersions::link()), CVE-2026-116020 (BookStack< 26.09.2AttachmentControllerDraft Page Authorization Bypass) & CVE-2026-116139 (WWBN AVideo26.0through29.3.0Comment 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).
Technical Root Cause Analysis & Code Dissection
Section titled โTechnical Root Cause Analysis & Code Dissectionโ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 extractionconst 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.0through2.7.1,CVE-2026-116136): InFileVersions::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 ProjectSend2.7.2. - BookStack (
< 26.09.2,CVE-2026-116020): InAttachmentController, 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 BookStack26.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:#ffffffForensic Analysis & Detection Engineering
Section titled โForensic Analysis & Detection Engineeringโ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-imagemagick26status: experimentaldescription: 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-optionsauthor: Hermes Threat Intelligencedate: 2026/10/26logsource: category: process_creation product: linuxdetection: 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_childfalsepositives: - Environments where Ghostscript PDF rendering is intentionally permitted by policy.xmllevel: hightags: - attack.execution - attack.defense_evasion - attack.t1203 - cve.2026-116140 - cve.2026-116145 - cve.2026-116148rule Hermes_ImageMagick_MVG_And_AdmZip_Bypass_CVE_2026_116140_116137 { meta: description = "Detects suspicious MVG drawing directive injections (CVE-2026-116148 / CVE-2026-116144) and ZIP archives with non-canonical './' or '//' path entries (CVE-2026-116137)" author = "Hermes Threat Intelligence" date = "2026-10-26" cve = "CVE-2026-116140, CVE-2026-116148, CVE-2026-116137" severity = "HIGH" strings: $mvg1 = "push graphic-context" ascii nocase $mvg2 = "image Over " ascii nocase $mvg3 = "url(https://" ascii nocase $mvg4 = "ephemeral:" ascii nocase $mvg5 = "msl:" ascii nocase $zip_magic = { 50 4B 03 04 } $zip_dot_slash = "./" ascii $zip_double_slash = "//" ascii condition: ($mvg1 and 1 of ($mvg2, $mvg3, $mvg4, $mvg5)) or (uint32(0) == 0x04034b50 and (#zip_dot_slash > 1 or #zip_double_slash > 1))}#!/usr/bin/env bash# Hermes Forensic Audit Script for ImageMagick (< 7.1.2-33 / < 6.9.13-58) & Node.js adm-zip (<= 0.6.1)set -euo pipefail
echo "[*] 1. Checking installed ImageMagick version (CVE-2026-116140 to CVE-2026-116149)..."if command -v magick >/dev/null 2>&1; then magick -version | head -n 2elif command -v convert >/dev/null 2>&1; then convert -version | head -n 2fi
echo "[*] 2. Scanning Node.js lockfiles for vulnerable adm-zip (<= 0.6.1, CVE-2026-116137)..."grep -rn -C 2 '"adm-zip"' package*.json pnpm-lock.yaml yarn.lock 2>/dev/null || true
echo "[*] 3. Checking ProjectSend (<= 2.7.1), BookStack (< 26.09.2), and AVideo (<= 29.3.0) installations..."grep -rn "FileVersions::link" . 2>/dev/null || trueRemediation & Hardening Directives
Section titled โRemediation & Hardening Directivesโ- Upgrade ImageMagick to
>= 7.1.2-33(7.x) or>= 6.9.13-58(6.x) (CVE-2026-116140โCVE-2026-116149):- Upgrade all
ImageMagickbinaries andlibMagickCore/libMagickWandshared libraries to7.1.2-33(for 7.x series) or6.9.13-58(for 6.x series) or later. - Maintain a strict defense-in-depth
/etc/ImageMagick-7/policy.xmlconfiguration that disablesMVG,MSL,PS,PDF,XPS,DJVU, andUHDRcoders (rights="none") when only web raster formats (JPEG,PNG,WEBP,AVIF) are required.
- Upgrade all
- Patch Node.js
adm-zipto> 0.6.1& Enforce Canonical ZIP Entry Rejection (CVE-2026-116137):- Upgrade
adm-zippast0.6.1(>= 0.6.2) or enforce a pre-extraction validator overzip.getEntries()that canonicalizes every entry name (path.posix.normalize(entry.entryName).replace(/^(\.\/)+/, '')) and immediately rejects any archive containing duplicate canonical paths or..segments.
- Upgrade
- Update ProjectSend (
>= 2.7.2), BookStack (>= 26.09.2) & WWBN AVideo (>= 29.3.1):- Upgrade ProjectSend to
2.7.2(CVE-2026-116136), BookStack to26.09.2(CVE-2026-116020), and WWBN AVideo to29.3.1(CVE-2026-116139).
- Upgrade ProjectSend to