Patchfirst
CVE-2026-40281 Public exploit Critical · 10.0 EPSS 2.3%

Gotenberg vulnerable to argument injection via newlines in ExifTool metadata values

Fix:upgrade v8 to 8.32.0 also fixes CVE-2026-42596 Details ↓

gotenberg · gotenberg

Official description · CVE.org

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.

Breakdown
76.0 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 5 months after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+5 mo

7 fixes in github.com/gotenberg/gotenberg/v8 over 5 weeks. The latest fix listed for github.com/gotenberg/gotenberg/v8 is 8.32.0.

Fixes in github.com/gotenberg/gotenberg/v8Go package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 8.30.0CVE-2026-354587 Apr 2026
  2. 8.31.0CVE-2026-393835 May 2026
  3. 8.31.0CVE-2026-402805 May 2026
  4. 8.31.0CVE-2026-402816 May 2026
  5. 8.32.0CVE-2026-4259414 May 2026
  6. 8.32.0CVE-2026-4259514 May 2026
  7. 8.32.0CVE-2026-4259614 May 2026Latest listed

Affected versions and fixes

as published in the CVE record

gotenberg gotenberg

Affected: <= 8.30.1

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

2 packages in 1 ecosystem. Main package: github.com/gotenberg/gotenberg/v8.

Gogithub.com/gotenberg/gotenberg/v8GHSA-q7r4-hc83-hf2qGO-2026-5572

Upgrade to 8.32.0

Fixes this CVE and 1 other known vulnerability in this package (CVE-2026-42596).

Still affected on this line by CVE-2026-42589 (no fix published).

Gogo get github.com/gotenberg/gotenberg/v8@v8.32.0

First fixed in 8.31.0 for CVE-2026-40281.

Affected versions

If you runUpgrade to
All versions before 8.31.08.32.0first fix for this CVE: 8.31.0

“Up to” means the second version is the fix and is not affected.

Other packages that bundle this code (1)

Forks, repackagings and products that include the affected code. Each has its own fixed version.

  • Gogithub.com/gotenberg/gotenberg/v7
    Affected: All versionsNo fixed version published

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 9 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close