CVE-2026-42589 | Gotenberg: Unauthenticated RCE via ExifTool Metadata Key Injection

Exp

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.

Published: 2026-05-14 Last update: 2026-05-18 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2026-42589 is rated High Exploit Risk (91.6/100): CVSS Critical severity, with high exploitation likelihood (EPSS 8.77%, 93th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +8.71% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2026-42589

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2026-42589

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-02 0.06% 8.77% +8.71%
2 2026-05-20 0.04% 0.06% +0.01%
3 2026-05-19 0.04%

Full EPSS history (4 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-42589

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]

Weakness enumeration for CVE-2026-42589

GitHub Security Advisory for CVE-2026-42589

GHSA-rqgh-gxv4-6657 · Severity: critical · Ecosystem: go — Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection

Affected software / configurations for CVE-2026-42589

Vendor Product Version Raw CPE
thecodingmachine gotenberg < 8.31.0 cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:*

References for CVE-2026-42589

cvelogic Threat Intelligence