Skip to content
Critical

CVE-2026-42589Gotenberg OS Command Injection

Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection

Published May 7, 2026 · Updated Oct 28, 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) and 1 more product.
  • It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Jun 23, 2026. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 3.0% probability of exploitation in the next 30 days.
  • Fixed versions are available, including govulncheck-vulndb 0.0.20260723T184607-160000.1.1, Gotenberg 8.31.0.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

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.0%

Higher than 87.4% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

66/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Jun 23, 2026

47 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

3

Proof-of-concept links

In-the-wild evidence

10

Reports of active use

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
CIRCL KEVJun 23, 2026n/aNot reported
Industry KEV feedJun 23, 2026n/aNot reported

Affected Products

5 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
govulncheck-vulndbopensuseSee advisory0.0.20260723T184607-160000.1.1

Patched Releases

govulncheck-vulndb

0.0.20260723T184607-160000.1.1

Gotenberg

8.31.0

Timeline

  1. Publicly disclosed

    May 7, 2026

  2. Added to CIRCL KEV

    Jun 23, 2026

  3. Added to Industry KEV feed

    Jun 23, 2026

  4. Last updated

    Oct 28, 2026

Weakness Type

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

FAQ

Common Questions.

Is CVE-2026-42589 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.