CVE-2026-40281

Published May 6, 2026

Last updated 12 days ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2026-40281 is a vulnerability affecting Gotenberg, a Docker-powered stateless API used for PDF file processing, in versions 8.30.1 and earlier. The issue resides in the metadata write endpoint, which validates metadata keys for control characters but leaves metadata values unsanitized. By inserting a newline character into a metadata value, an attacker can split the ExifTool stdin line into two separate arguments. This allows the injection of arbitrary ExifTool pseudo-tags, such as `-FileName`, `-Directory`, `-SymLink`, and `-HardLink`, bypassing a previous key-sanitization fix introduced in version 8.30.1. Exploitation of this flaw allows an unauthenticated attacker to manipulate files within the container filesystem. Specifically, they can rename or move any PDF currently being processed to an arbitrary path, overwrite existing files, or create symlinks and hard links at arbitrary locations.

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.
Source
security-advisories@github.com
NVD status
Analyzed
Products
gotenberg

Risk scores

CVSS 3.1

Type
Primary
Base score
9.1
Impact score
5.2
Exploitability score
3.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Severity
CRITICAL

Weaknesses

security-advisories@github.com
CWE-88

Social media

Hype score
Not currently trending
  1. NØØT Security Alerts Classification: Critical CVE: CVE-2026-40281 Product: thecodingmachine / gotenberg Summary: VulnCheck reports real-world exploitation activity affecting thecodingmachine / gotenberg. Evidence: Public PoC/exploit available; Active exploitation reported;

    @Python_s_

    28 Oct 2026

    98 Impressions

    0 Retweets

    2 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  2. ⚠️⚠️ CVE-2026-42589 (CVSS 9.8) + CVE-2026-40281 (CVSS 10.0): unauthenticated argument injection in Gotenberg PDF engine metadata-write endpoint → RCE 🔗FOFA Link: https://t.co/g3hLegTXZl 🎯6.6K+ Results are found on https://t.co/pb16tGXCUG in the past year. FOFA Que

    @fofabot

    10 Oct 2026

    1416 Impressions

    3 Retweets

    7 Likes

    3 Bookmarks

    1 Reply

    0 Quotes

  3. ExploitGrid Daily Digest 🚨 Top Exploits: CVE-2025-57819 (CVSS: 10) FreePBX CVE-2026-105134 (CVSS: 10) Ahsay CVE-2026-40281 (CVSS: 10) gotenberg CVE-2024-40453 (CVSS: 9.8) CVE-2026-39987 (CVSS: 9.3) marimo-team ..🧵👇

    @exploitgrid

    7 Oct 2026

    306 Impressions

    1 Retweet

    6 Likes

    1 Bookmark

    1 Reply

    0 Quotes

  4. ExploitGrid Daily Digest 🚨 Top Exploits: CVE-2024-51482 (CVSS: 10) zoneminder CVE-2025-55182 (CVSS: 10) Meta CVE-2026-103956 (CVSS: 10) AWS CVE-2026-40281, CVE-2026-42589 (CVSS: 9.9) gotenberg CVE-2018-7600 (CVSS: 9.8) n/a ..🧵👇

    @exploitgrid

    6 Oct 2026

    389 Impressions

    1 Retweet

    11 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  5. 🚨 PoC released for an unauthenticated Gotenberg RCE chain PoC: https://t.co/1GpZySsuWA CVE chain: CVE-2026-42589 + CVE-2026-40281 The exploit targets the /forms/pdfengines/metadata/write endpoint and chains metadata injection flaws to achieve remote command execution. https

    @DarkWebInformer

    5 Oct 2026

    5374 Impressions

    4 Retweets

    18 Likes

    3 Bookmarks

    0 Replies

    0 Quotes

  6. 🔴 Gotenberg ≤8.30.1 sürümlerinde CVE-2026-40281 olarak takip edilen kritik, kimlik doğrulaması gerektirmeyen RCE açığı için çalışan PoC exploit yayınlandı. Metadata değerlerindeki newline injection üzerinden ExifTool argument injection gerçekleştiriliyor ve

    @ridvanyagli

    5 Oct 2026

    91 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  7. Going live in 5 minutes: CVE-2026-40281 We are doing a Reverse Shell at the end https://t.co/4DCRhOOZbB

    @CCNADailyTIPS

    5 Oct 2026

    55 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  8. 🚨 PoC RELEASED: A public exploit is now available for CVE-2026-40281, a critical unauthenticated vulnerability in Gotenberg. The flaw affects Gotenberg ≤ 8.30.1 and can lead to arbitrary code execution through the PDF metadata processing path. 🔴 CVSS: 9.1–10.0 Critica

    @ThreatWire_

    4 Oct 2026

    2262 Impressions

    6 Retweets

    23 Likes

    4 Bookmarks

    4 Replies

    0 Quotes

  9. #ExploitGrid Daily Digest 🚨 Top Exploits: CVE-2026-40281 (CVSS: 10) gotenberg CVE-2026-40281 (CVSS: 10) gotenberg CVE-2026-40281, CVE-2026-42589 (CVSS: 9.9) gotenberg CVE-2017-7921 (CVSS: 9.8) n/a CVE-2026-103752 (CVSS: 9.8) ..🧵👇

    @exploitgrid

    4 Oct 2026

    151 Impressions

    0 Retweets

    2 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  10. 🚨 Public exploit released for CVE-2026-40281 affecting Gotenberg https://t.co/4PhmHWbVme A proof-of-concept exploit has been published for CVE-2026-40281, a critical unauthenticated remote code execution vulnerability affecting Gotenberg versions prior to 8.31.0. The flaw h

    @DarkWebInformer

    3 Oct 2026

    10200 Impressions

    22 Retweets

    108 Likes

    33 Bookmarks

    4 Replies

    1 Quote

  11. #ExploitGrid Daily Digest 🚨 Top Exploits: CVE-2026-40281 (CVSS: 10) gotenberg CVE-2026-40281 (CVSS: 10) gotenberg CVE-2026-40281, CVE-2026-42589 (CVSS: 9.9) gotenberg CVE-2017-7921 (CVSS: 9.8) n/a CVE-2026-103752 (CVSS: 9.8) ..🧵👇

    @exploitgrid

    3 Oct 2026

    133 Impressions

    1 Retweet

    2 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

  12. Unpopular opinion: The cybersecurity industry is selling you dashboards. Perfect Score Exploit: Gotenberg CVE-2026-40281 Achieves CVSS 10.0 With Unauthenticated RCE

    @lyrie_ai

    6 Jun 2026

    21 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    1 Reply

    0 Quotes

Configurations