CVE-2026-42589

CRITICAL EXPLOITED NUCLEI LAB

Gotenberg: Unauthenticated RCE via ExifTool Metadata Key Injection

Title source: cna
STIX 2.1

Exploitation Summary

CVE-2026-42589 has been observed exploited in the wild (reported by VulnCheck KEV). EIP tracks 1 public exploit from researchers including fineman999. A Nuclei detection template is also available.

AI-analyzed exploit summary This repository contains a functional exploit PoC for CVE-2026-42589, demonstrating unauthenticated RCE in Gotenberg via metadata key injection in the /forms/pdfengines/metadata/write endpoint. The exploit uses a timing-based check with a sleep command to verify vulnerability.

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.

Exploits (1)

github WORKING POC
by fineman999 · pythonremote
https://github.com/fineman999/POC_CVE-2026-42589

This repository contains a functional exploit PoC for CVE-2026-42589, demonstrating unauthenticated RCE in Gotenberg via metadata key injection in the /forms/pdfengines/metadata/write endpoint. The exploit uses a timing-based check with a sleep command to verify vulnerability.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Gotenberg 8.29.1
No auth needed
Prerequisites: Access to the target's /forms/pdfengines/metadata/write endpoint
mistral-large-3 · analyzed May 30, 2026 Full analysis →

Nuclei Templates (1)

Gotenberg - Command Injection
CRITICALVERIFIEDby fineman999

References (1)

Core 1
Core References

Scores

CVSS v3 9.8
EPSS 0.0301
EPSS Percentile 86.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Lab Environment

COMMUNITY
Community Lab
docker pull gotenberg/gotenberg:8.29.1

Details

VulnCheck KEV 2026-06-23
CWE
CWE-78
Status published
Products (3)
gotenberg/gotenberg Go
gotenberg/gotenberg < 8.31.0
thecodingmachine/gotenberg < 8.31.0
Published May 14, 2026
Tracked Since May 14, 2026