Skip to content
Vulnerability Intelligence

CVE-2026-42589

CriticalExploitedPublic exploit

Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection

Published May 7, 2026 · Updated Aug 12, 2026 · Also known as GHSA-rqgh-gxv4-6657, GO-2026-5636

Key Facts

Patch immediately
  • CVE-2026-42589 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Gotenberg (Thecodingmachine), github.com/gotenberg/gotenberg/v7 (go), github.com/gotenberg/gotenberg/v8 (go).
  • It is exploited in the wild, listed in Industry KEV feed since Jun 23, 2026. Public exploit code is available.
  • EPSS estimates a 3.7% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Gotenberg 8.31.0.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

3.7%

Higher than 89.5% of all scored CVEs

Exploited in the wild

Yes

1 catalog listing

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2026-42589 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg's /forms/pdfengines/metadata/write HTTP endpoint accepts a JSON metadata object and passes its keys directly to ExifTool via the go-exiftool library. No validation is performed on key characters. A \n embedded in a JSON key splits the ExifTool stdin stream into a new argument line, allowing an attacker to inject arbitrary ExifTool flags — including -if, which evaluates Perl expressions. This achieves unauthenticated OS command execution in a single HTTP request. The response is HTTP 200 with a valid PDF, making the attack transparent to basic monitoring. This vulnerability is fixed in 8.31.0.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedJun 23, 2026n/aNot reported

Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.

Affected Products

4 affected entries in total
ProductAffected versionsFixed in
GotenbergThecodingmachine>= < 8.31.08.31.0
github.com/gotenberg/gotenberg/v7goSee advisoryn/a
github.com/gotenberg/gotenberg/v8go>= 8.29.1n/a

Patched Releases

Gotenberg

8.31.0

Timeline

  1. Publicly disclosed

    May 7, 2026

  2. Added to Industry KEV feed

    Jun 23, 2026

  3. Last updated

    Aug 12, 2026

Weakness Type

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

References

FAQ

Common Questions.

Is CVE-2026-42589 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo