Skip to content
Critical

CVE-2026-40281Gotenberg Vulnerability

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

Published Apr 30, 2026 · Updated Oct 21, 2026 · Also known as GHSA-q7r4-hc83-hf2q, GO-2026-5572

Key Facts

Patch immediately
  • CVE-2026-40281 is a critical-severity vulnerability (CVSS 9.1 v3.1) affecting Gotenberg (Thecodingmachine), github.com/gotenberg/gotenberg/v7 (go), github.com/gotenberg/gotenberg/v8 (go).
  • It is exploited in the wild, listed in Industry KEV feed since Oct 27, 2026. A public exploit is reported by tracking sources, but no code link is listed yet.
  • EPSS estimates a 2.3% probability of exploitation in the next 30 days.
  • Fixed versions are available, including github.com/gotenberg/gotenberg/v8 8.31.0, Gotenberg 8.31.0.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3.1

9.1

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

EPSS (30-day exploit likelihood)

2.3%

Higher than 82.9% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

67/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Oct 27, 2026

180 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

6

Proof-of-concept links

In-the-wild evidence

2

Reports of active use

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.

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedOct 27, 2026n/aNot reported

Affected Products

4 affected entries in total
ProductAffected versionsFixed in
GotenbergThecodingmachine<= 8.30.18.31.0
github.com/gotenberg/gotenberg/v7goSee advisoryn/a
github.com/gotenberg/gotenberg/v8goSee advisory8.31.0

Patched Releases

github.com/gotenberg/gotenberg/v8

8.31.0

Gotenberg

8.31.0

Timeline

  1. Publicly disclosed

    Apr 30, 2026

  2. Last updated

    Oct 21, 2026

  3. Added to Industry KEV feed

    Oct 27, 2026

Weakness Type

  • CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

FAQ

Common Questions.

Is CVE-2026-40281 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.