{"cve":"CVE-2026-40281","nvd":{"published":"2026-05-06T21:16:01.353","modified":"2026-06-17T10:44:56.397","status":"Analyzed","description":"Gotenberg is a Docker-powered stateless API for PDF files. In versions 8.30.1 and earlier, the metadata write endpoint validates metadata keys for control characters but leaves metadata values unsanitized. A newline character in a metadata value splits the ExifTool stdin line into two separate arguments, allowing injection of arbitrary ExifTool pseudo-tags such as -FileName, -Directory, -SymLink, and -HardLink. This is a bypass of the incomplete key-sanitization fix introduced in v8.30.1. An unauthenticated attacker can rename or move any PDF being processed to an arbitrary path in the container filesystem, overwrite arbitrary files, or create symlinks and hard links at arbitrary paths.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1},"cwes":["CWE-88"],"references":["https://github.com/gotenberg/gotenberg/commit/405f1069c026bb08f319fb5a44e5c67c33208318","https://github.com/gotenberg/gotenberg/security/advisories/GHSA-q7r4-hc83-hf2q","https://github.com/gotenberg/gotenberg/security/advisories/GHSA-q7r4-hc83-hf2q"],"products":["thecodingmachine:gotenberg"],"source":"nvd","synced_at":"2026-10-19T22:33:55.586217763+00:00"},"epss":{"cve":"CVE-2026-40281","score":0.02258,"percentile":0.82969,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-q7r4-hc83-hf2q","url":"https://osv.dev/vulnerability/GHSA-q7r4-hc83-hf2q","summary":"Gotenberg has ExifTool stdin argument injection via metadata value newlines (bypass of key sanitization fix)","modified":"2026-06-25T23:11:31.956742106Z","packages":[{"ecosystem":"Go","name":"github.com/gotenberg/gotenberg/v8","purl":"pkg:golang/github.com/gotenberg/gotenberg/v8","ranges":["<8.31.0"],"fixed":["8.31.0"]}]},{"id":"GO-2026-5572","url":"https://osv.dev/vulnerability/GO-2026-5572","summary":"Gotenberg has ExifTool stdin argument injection via metadata value newlines (bypass of key sanitization fix) in github.com/gotenberg/gotenberg","modified":"2026-06-25T23:01:23.201857712Z","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":["<8.31.0"],"fixed":["8.31.0"]}]}],"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."]}