Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-42589: Unauthenticated remote command execution in Gotenberg via ExifTool argument injection

Published May 14, 2026 · Updated 21 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days6 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS3.7%90th percentile
CISA KEVNoNot listed
In the wildReported19 exploitation records in Mallory
Vendor
Thecodingmachine
IdentifiersCVE-2026-42589CWE-78 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
-GOTENBERG-RCE-CHAINThe supplied repository contains five files: two standalone Python CLI tools, README.md, an MIT LICENSE, and a Python-oriented .gitignore. Both Python files have shebangs and main entry points, use requests/urllib3, embed a minimal PDF, and carry a substantial PHP file-manager webshell. gotenberg_rce.py provides target checking, an interactive command interface, and webshell deployment. auto_revshell.py additionally selects a supplied or detected callback IP and invokes automated reverse-shell handling. Visible control flow supports concurrent checking, selecting the first vulnerable target for interactive/reverse-shell access, iterating over targets for webshell deployment, and writing results. The README associates metadata-key injection with CVE-2026-42589 and metadata-value/Perl injection with CVE-2026-40281, claiming affected Gotenberg versions <= 8.30.1 and a fix in >= 8.31.0. These identifiers, version boundaries, and execution mechanisms are repository claims, not independently verified findings. Although described as a chain, the documentation also says the tools try both injection methods; the excerpts do not establish a necessary two-vulnerability chain. Important limitations: both scripts are heavily truncated, hiding the injection builders, HTTP request logic, detection tests, reverse-shell implementations, public-IP service URLs, and webshell destination paths. Therefore exploit reliability and all advertised capabilities cannot be confirmed. HTTP 500 responses alone would not prove command execution. No clear evidence of a fake exploit or operator-directed destructive behavior appears in the visible code; the webshell's deletion functions are explicit payload capabilities. The PHP payload is unauthenticated and unrestricted, but requires a PHP-serving environment beyond merely obtaining execution inside Gotenberg. The README references requirements.txt, sample target/output files, and a docs screenshot that are absent from the actual five-file inventory. Documentation links and image hosts are not exploit callback endpoints. The repository URL is inferred from the README clone command; no git ref or archive size was provided, so ref is empty and size_bytes is 0. Listed file sizes total 74,769 bytes, which is not an archive measurement.HackfutSecRoot · Disclosed Oct 3, 2026 · python · php · network · webOperational
Exposure surface

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.

VendorProductType
ThecodingmachineGotenbergapplication
FAQ

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.
Activity feed

Recent activity

18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
risky biz rssNews · Oct 30, 2026Belarusian state hackers get on the data-wiping trainA vulnerability in the Gotenberg document-to-PDF conversion application being exploited to backdoor servers. The content does not describe its technical mechanism or identify the attackers or backdoors.Read more ↗the hacker newsNews · Oct 29, 2026ThreatsDay: Critical Firewall Flaws, Banking Trojans Rented, Weaponized PDF, Token Theft + 26 More StoriesA critical remote code execution vulnerability in Gotenberg with a reported CVSS score of 9.8. Patched in May 2026, it is being exploited to deploy a reverse shell that collects host information, registers victims with command-and-control infrastructure, and opens a shell.Read more ↗vulncheck blogNews · Oct 26, 2026Cache Me If You Can: Unpacking a Go Implant and Its Toolkit | Blog | VulnCheckA critical argument-injection vulnerability in Gotenberg's POST /forms/pdfengines/metadata/write endpoint allows arbitrary command execution through metadata keys passed to ExifTool. The report documents 1,358 exploitation events from 128 source IPs over its 30-day analysis window, spanning scanning, cryptomining, and custom backdoor deployment. One observed campaign used the flaw to execute commands, retrieve their output through PDF metadata, and attempt to download the cache_base Go reverse shell from three mirrors. Other exploitation was associated with XMRig deployment. Gotenberg 8.31.0 fixes the vulnerability.Read more ↗nuclei templates pull requestsNews · Sep 28, 2026Add CVE-2026-40281 - Gotenberg <= 8.30.1 - Remote Code Execution by Aryu-RU · Pull Request #17333 · projectdiscovery/nuclei-templatesUnknown.Read more ↗
+3 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware4Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity11Community discussion across Reddit, Mastodon, and other social sources.