{"cve":"CVE-2026-42589","nvd":{"published":"2026-05-14T16:16:21.867","modified":"2026-06-17T10:48:06.530","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-78"],"references":["https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657","https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657"],"products":["thecodingmachine:gotenberg"],"source":"nvd","synced_at":"2026-10-19T22:35:16.954578616+00:00"},"epss":{"cve":"CVE-2026-42589","score":0.03013,"percentile":0.87417,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rqgh-gxv4-6657","url":"https://osv.dev/vulnerability/GHSA-rqgh-gxv4-6657","summary":"Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection","modified":"2026-06-25T23:11:23.308211301Z","packages":[{"ecosystem":"Go","name":"github.com/gotenberg/gotenberg/v8","purl":"pkg:golang/github.com/gotenberg/gotenberg/v8","ranges":["8.29.1"],"fixed":[]}]},{"id":"GO-2026-5636","url":"https://osv.dev/vulnerability/GO-2026-5636","summary":"Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection in github.com/gotenberg/gotenberg","modified":"2026-06-25T23:01:36.344241738Z","packages":[{"ecosystem":"Go","name":"github.com/gotenberg/gotenberg/v7","purl":"pkg:golang/github.com/gotenberg/gotenberg/v7","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/gotenberg/gotenberg/v8","purl":"pkg:golang/github.com/gotenberg/gotenberg/v8","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}