Patchfirst
CVE-2026-42589 Public exploit Critical · 9.8 EPSS 3.0%

Gotenberg: Unauthenticated RCE via ExifTool Metadata Key Injection

No fixed version listed yet.Check the vendor advisory. References ↓

gotenberg · gotenberg

Summary

Gotenberg, the Docker-based stateless PDF API, has an input validation flaw in its /forms/pdfengines/metadata/write endpoint, where metadata JSON keys are passed unsanitised to ExifTool, so newline characters in a key can inject arbitrary ExifTool arguments. An attacker with plain network access can exploit this in a single unauthenticated HTTP request, with no user interaction or special configuration needed, to execute operating system commands.

Official description · CVE.org

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.

Breakdown
71.7 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 5 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 16 days after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+16 days
  3. First seen exploitedVulnCheck KEV evidence+5 mo

Affected versions and fixes

as published in the CVE record

gotenberg gotenberg

Affected: < 8.31.0

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

2 packages in 1 ecosystem. Main package: github.com/gotenberg/gotenberg/v8.

Gogithub.com/gotenberg/gotenberg/v8GHSA-rqgh-gxv4-6657GO-2026-5636

No fixed version published. Check the advisory or remove the package.

Affected versions

If you runUpgrade to
All versionsNo fix published
Other packages that bundle this code (1)

Forks, repackagings and products that include the affected code. Each has its own fixed version.

  • Gogithub.com/gotenberg/gotenberg/v7
    Affected: All versionsNo fixed version published

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 9 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

1 link, grouped by NVD tag
↑ ↓ chooseEnter openEsc close