Security mailing lists by PureSourceCode

CVE-2026-40281

CRITICAL 9.1CVSS 3.1

Gotenberg has ExifTool stdin argument injection via metadata value newlines (bypass of key sanitization fix)

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.

Published
6 May 2026
Last modified
11 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-88
Also known as
GHSA-q7r4-hc83-hf2qGO-2026-5572
Sources
NVDJSONOSV GHSA-q7r4-hc83-hf2qJSONOSV GO-2026-5572JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD thecodingmachine gotenberg
cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:*
< 8.31.0 8.31.0
OSV Go github.com/gotenberg/gotenberg/v8 < 8.31.0 8.31.0
OSV Go github.com/gotenberg/gotenberg/v7 all versions

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 May 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 30 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.