CVE-2026-42589: Unauthenticated remote command execution in Gotenberg via ExifTool argument injection
- Vendor
- Thecodingmachine
CVE-2026-42589 is an unauthenticated remote command execution vulnerability affecting Gotenberg versions before 8.31.0. The PDF metadata-writing endpoint passes user-controlled JSON metadata keys to ExifTool through the go-exiftool library without adequately validating key characters. An embedded newline introduces another argument into ExifTool's standard-input argument stream. Attackers can inject the -if flag, which evaluates Perl expressions, to execute arbitrary operating-system commands through a single HTTP request. Successful exploitation can still return HTTP 200 and a valid PDF, making it difficult to identify through HTTP status monitoring alone. The vulnerability has a reported CVSS v3.1 score of 9.8 and is fixed in Gotenberg 8.31.0.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises confidentiality, integrity, and availability within the permissions and resource access of the Gotenberg process. Attackers can read accessible sensitive data, modify or delete accessible files, execute additional payloads, and disrupt PDF-processing services. Observed exploitation campaigns have attempted reverse-shell deployment and deployed cryptomining payloads. Execution occurs in the Gotenberg runtime, typically a container; host-level compromise or container escape is not established by this vulnerability alone.
Mitigation
If you can’t patch tonight, do this now.
Place an authenticating reverse proxy in front of the Gotenberg API to prevent unauthenticated access. Restrict API reachability to trusted clients as an additional exposure-reduction measure. These controls do not correct the underlying input-handling flaw and should not replace upgrading. Do not rely solely on HTTP error monitoring, because exploitation can return a successful response containing a valid PDF.
Remediation
Patch, then assume compromise.
Upgrade Gotenberg to version 8.31.0 or later. For containerized deployments, replace running vulnerable containers with an updated image and verify that all replicas use the fixed version.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-42589 exploited in the wild?
- Yes. As of Nov 7, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-42589?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-42589, the earliest disclosed Oct 3, 2026.
- Is there a patch for CVE-2026-42589?
- Upgrade Gotenberg to version 8.31.0 or later. For containerized deployments, replace running vulnerable containers with an updated image and verify that all replicas use the fixed version.
- What products are affected by CVE-2026-42589?
- Thecodingmachine Gotenberg.
- How severe is CVE-2026-42589?
- CVE-2026-42589 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 3.7% (90th percentile) as of Nov 7, 2026.
Recent activity
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.