Vulnerability Details CVE-2026-42589
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.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.088
EPSS Ranking 92.7%
CVSS Severity
CVSS v3 Score 9.8
Products affected by CVE-2026-42589
-
cpe:2.3:a:thecodingmachine:gotenberg:3.0.0
-
cpe:2.3:a:thecodingmachine:gotenberg:3.0.1
-
cpe:2.3:a:thecodingmachine:gotenberg:3.0.2
-
cpe:2.3:a:thecodingmachine:gotenberg:3.1.0
-
cpe:2.3:a:thecodingmachine:gotenberg:3.1.1
-
cpe:2.3:a:thecodingmachine:gotenberg:3.1.2
-
cpe:2.3:a:thecodingmachine:gotenberg:3.2.0
-
cpe:2.3:a:thecodingmachine:gotenberg:4.0.0
-
cpe:2.3:a:thecodingmachine:gotenberg:4.1.0
-
cpe:2.3:a:thecodingmachine:gotenberg:4.2.0
-
cpe:2.3:a:thecodingmachine:gotenberg:4.2.1
-
cpe:2.3:a:thecodingmachine:gotenberg:4.3.0
-
cpe:2.3:a:thecodingmachine:gotenberg:4.4.0
-
cpe:2.3:a:thecodingmachine:gotenberg:5.0.0
-
cpe:2.3:a:thecodingmachine:gotenberg:5.0.1
-
cpe:2.3:a:thecodingmachine:gotenberg:5.0.2
-
cpe:2.3:a:thecodingmachine:gotenberg:5.1.0
-
cpe:2.3:a:thecodingmachine:gotenberg:6.0.0
-
cpe:2.3:a:thecodingmachine:gotenberg:6.0.1
-
cpe:2.3:a:thecodingmachine:gotenberg:6.0.2
-
cpe:2.3:a:thecodingmachine:gotenberg:6.0.3
-
cpe:2.3:a:thecodingmachine:gotenberg:6.0.4
-
cpe:2.3:a:thecodingmachine:gotenberg:6.1.0
-
cpe:2.3:a:thecodingmachine:gotenberg:6.1.1
-
cpe:2.3:a:thecodingmachine:gotenberg:6.1.2
-
cpe:2.3:a:thecodingmachine:gotenberg:6.2.0
-
cpe:2.3:a:thecodingmachine:gotenberg:6.2.1
-
cpe:2.3:a:thecodingmachine:gotenberg:6.3.0
-
cpe:2.3:a:thecodingmachine:gotenberg:6.3.1
-
cpe:2.3:a:thecodingmachine:gotenberg:6.4.0
-
cpe:2.3:a:thecodingmachine:gotenberg:6.4.1
-
cpe:2.3:a:thecodingmachine:gotenberg:6.4.2
-
cpe:2.3:a:thecodingmachine:gotenberg:6.4.3
-
cpe:2.3:a:thecodingmachine:gotenberg:6.4.4
-
cpe:2.3:a:thecodingmachine:gotenberg:7.0.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.0.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.0.2
-
cpe:2.3:a:thecodingmachine:gotenberg:7.0.3
-
cpe:2.3:a:thecodingmachine:gotenberg:7.0.4
-
cpe:2.3:a:thecodingmachine:gotenberg:7.0.5
-
cpe:2.3:a:thecodingmachine:gotenberg:7.0.6
-
cpe:2.3:a:thecodingmachine:gotenberg:7.0.7
-
cpe:2.3:a:thecodingmachine:gotenberg:7.1.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.1.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.10.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.10.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.10.2
-
cpe:2.3:a:thecodingmachine:gotenberg:7.2.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.3.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.3.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.4.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.4.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.4.2
-
cpe:2.3:a:thecodingmachine:gotenberg:7.4.3
-
cpe:2.3:a:thecodingmachine:gotenberg:7.5.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.5.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.5.2
-
cpe:2.3:a:thecodingmachine:gotenberg:7.5.3
-
cpe:2.3:a:thecodingmachine:gotenberg:7.5.4
-
cpe:2.3:a:thecodingmachine:gotenberg:7.6.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.6.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.6.2
-
cpe:2.3:a:thecodingmachine:gotenberg:7.7.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.7.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.7.2
-
cpe:2.3:a:thecodingmachine:gotenberg:7.8.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.8.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.8.2
-
cpe:2.3:a:thecodingmachine:gotenberg:7.8.3
-
cpe:2.3:a:thecodingmachine:gotenberg:7.9.0
-
cpe:2.3:a:thecodingmachine:gotenberg:7.9.1
-
cpe:2.3:a:thecodingmachine:gotenberg:7.9.2
-
cpe:2.3:a:thecodingmachine:gotenberg:8.0.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.0.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.0.2
-
cpe:2.3:a:thecodingmachine:gotenberg:8.0.3
-
cpe:2.3:a:thecodingmachine:gotenberg:8.1.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.10.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.11.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.11.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.12.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.13.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.14.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.14.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.15.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.15.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.15.2
-
cpe:2.3:a:thecodingmachine:gotenberg:8.15.3
-
cpe:2.3:a:thecodingmachine:gotenberg:8.16.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.17.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.17.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.17.2
-
cpe:2.3:a:thecodingmachine:gotenberg:8.17.3
-
cpe:2.3:a:thecodingmachine:gotenberg:8.18.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.19.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.19.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.2.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.2.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.2.2
-
cpe:2.3:a:thecodingmachine:gotenberg:8.20.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.20.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.21.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.21.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.22.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.23.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.23.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.23.2
-
cpe:2.3:a:thecodingmachine:gotenberg:8.24.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.25.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.25.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.26.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.27.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.28.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.29.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.29.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.3.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.30.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.30.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.4.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.5.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.5.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.6.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.7.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.8.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.8.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.9.0
-
cpe:2.3:a:thecodingmachine:gotenberg:8.9.1
-
cpe:2.3:a:thecodingmachine:gotenberg:8.9.2