SecurityContext

CVE-2026-42589: Gotenberg - Command Injection

  • Cve: CVE-2026-42589
  • Name: Gotenberg - Command Injection
  • 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.
  • Impact: Unauthenticated attackers can execute arbitrary OS commands remotely, potentially leading to full system compromise.
  • Remediation: Update to version 8.31.0 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.03013
  • Epss percentile: 0.8776
  • Assignee: [email protected]
  • Published at: 2026-05-14T16:16:21Z
  • Age in days: 194
  • Modified at: 2026-11-11T20:10:00Z
  • Patch available: yes
  • Public exploits total: 5
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-42589
  • Nvd status: analyzed
  • Checked, none or zero: public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

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

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2026-06-23—no

Nuclei templates

IdUrl
CVE-2026-42589https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42589.yaml

Public exploits

UrlSourceAdded date
https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657nvd2026-05-14
https://github.com/HackfutSecRoot/-GOTENBERG-RCE-CHAIN.gitvulncheck-xdb2026-10-03
https://github.com/HackfutSecRoot/-GOTENBERG-RCE-CHAINpoc-in-github2026-10-03
https://github.com/fineman999/POC_CVE-2026-42589poc-in-github2026-05-30
https://github.com/fineman999/POC_CVE-2026-42589.gitvulncheck-xdb2026-05-30

References

UrlSourceTags
https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657nvdExploit, Mitigation, Vendor Advisory
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42589.yamlnuclei_templateNuclei Template
https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2026-42589vulncheckVulncheck Reported Exploitation
https://www.vulncheck.com/blog/cache-me-if-you-canvulncheckVulncheck Reported Exploitation
https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2026-42589vulncheckVulncheck Reported Exploitation

Products

ProductAffectedPlatform boundSourcesUrl
thecodingmachine:gotenberg< 8.31.0nonvd/v1/products/thecodingmachine/gotenberg

Projects

RepositoryLink kindsIndexedUrl
gotenberg/gotenbergpackage, security_advisoryyes/v1/repositories/gotenberg/gotenberg

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Known exploited by: vulncheck
  • Vulncheck known exploited since: 2026-06-23
  • Public exploit: yes
  • Public exploit count: 5
  • Public exploit first date: 2026-05-14
  • Initial access: yes
  • Initial access since: 2026-06-12
  • Remote: yes
  • Exposed hosts: 3128
  • Checked, none or zero: known exploited, exploitation seen, authentication required
  • Not known: known exploited since, hackerone reports

Nuclei template