Skip to main content

Gotenberg CVE-2026-40893

| EUVDEUVD-2026-30307 HIGH
Improper Input Validation (CWE-20)
2026-05-04 https://github.com/gotenberg/gotenberg GHSA-62p3-hvxx-fxg4
8.2
CVSS 3.1 · Vendor: https://github.com/gotenberg/gotenberg
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted HTTP POST with group-prefixed metadata
  2. Delivery
    Bypass blocklist validation in exiftool.go
  3. Exploit
    ExifTool normalizes System:FileName to FileName
  4. Execution
    File renamed and relocated within container
  5. Persist
    Service disruption via 404 errors
  6. Impact
    Potential data injection if shared volumes present

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

No special conditions - remote unauthenticated exploitation against default configurations of Gotenberg 8.x. The application listens on HTTP port 3000 by default with no authentication mechanism enabled. Any endpoint accepting the 'metadata' parameter is exploitable, including /forms/pdfengines/metadata/write, /forms/chromium/convert/html, /forms/libreoffice/convert, and /forms/pdfengines/merge. Attack succeeds from any network position that can reach Gotenberg's exposed port (typically internet-facing in cloud deployments, or internal network in on-premise setups). No user interaction required (UI:N). No elevated privileges required (PR:N). Attack complexity is low (AC:L) - requires only basic HTTP client capabilities and understanding of ExifTool's group-prefixed tag syntax, fully documented in the public PoC. Scope is unchanged (S:U) because exploitation remains confined to the Gotenberg container's filesystem permissions and does not inherently pivot to other systems, though shared Docker volumes expand practical impact. The only limiting factor is writable filesystem access within the container: attackers can only move/rename files to directories where the Gotenberg process user has write permissions, but this typically includes /tmp and any mounted volumes by design.

Impact

CVSS 8.2 (AV:N/AC:L/PR:N/UI:N) accurately reflects exploitability: network-reachable, low complexity, no authentication, no user interaction. However, real-world risk depends heavily on deployment context. In isolated containers with ephemeral storage, impact is limited to denial-of-service (moving files breaks concurrent requests, causing 404 errors). In shared-volume Docker deployments (common for document processing pipelines), attackers can inject files into directories accessible to adjacent services, escalating from file manipulation to potential data poisoning or configuration tampering. The 'I:H' (high integrity impact) rating is justified - attackers control filenames, paths, and permissions within writable filesystem scope. 'A:L' (low availability impact) understates risk in multi-tenant scenarios where file relocation disrupts service for all users. No EPSS score or KEV status provided, but the public GitHub advisory with working PoC significantly lowers exploitation barriers. The vulnerability bypasses an earlier fix (GHSA-qmwh-9m9c-h36m), indicating iterative attacker adaptation - defenders should anticipate further evasion attempts. Priority depends on deployment: HIGH for shared-volume or multi-tenant setups, MEDIUM for isolated single-use containers. Key uncertainty: affected version range lists '≤8.30.1' as vulnerable but 'fixed in: None' - this conflicts with typical advisory structure and suggests either no patch exists yet or patch version data is incomplete.

Exploit ScenarioDerived

An attacker identifies a publicly accessible Gotenberg instance (common in document-processing APIs exposed to frontend applications or third-party integrations). Without authentication, they upload a benign PDF via HTTP POST to /forms/pdfengines/metadata/write, including JSON metadata parameter '{"System:FileName":"malicious.pdf","System:Directory":"/tmp/shared-volume"}'. The request passes input validation because colons are permitted in tag names, and 'System:FileName' does not match the blocklist entry 'FileName'. ExifTool processes the metadata, interprets 'System:FileName' as 'FileName', and relocates the uploaded file to /tmp/shared-volume (a Docker volume shared with an adjacent microservice). The attacker repeats this with files containing malicious payloads or overwrites configuration files if permissions allow. Concurrent legitimate requests to Gotenberg fail with 404 errors because files are moved mid-processing, causing service degradation. In shared-volume scenarios, the adjacent service (e.g., a report generator) ingests the attacker-placed file, potentially leading to template injection, XXE, or other document-based attacks depending on that service's processing logic.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 04, 2026

Remote unauthenticated attackers can bypass ExifTool tag blocklist in Gotenberg 8.x via group-prefixed tag names (e.g., 'System:FileName' instead of 'FileName'), enabling arbitrary file renaming, relocation, and permission modification within the container filesystem. One HTTP request exploits this input validation bypass (CWE-20) to circumvent protections from a prior security fix (GHSA-qmwh-9m9c-h36m). The vulnerability affects all metadata-accepting endpoints in Gotenberg's default configuration, which typically runs without authentication. No public exploit code is confirmed, but a detailed proof-of-concept is published in the GitHub advisory (GHSA-62p3-hvxx-fxg4). CVSS 8.2 reflects network vector with no authentication required, though real-world impact depends on container isolation and shared volume configurations.

RemediationAI

No vendor-released patched version is confirmed in available data - the advisory lists 'fixed in: None' as of analysis time. Monitor https://github.com/gotenberg/gotenberg/security/advisories/GHSA-62p3-hvxx-fxg4 for patch announcements. Until a fix is available, apply these compensating controls: (1) Disable all metadata-accepting endpoints at the reverse proxy or API gateway level if metadata writing is not required - this blocks all attack vectors but sacrifices metadata functionality. (2) Implement strict authentication and authorization before Gotenberg endpoints to limit attacker pool (default configuration has no authentication) - reduces risk from 'anyone on the network' to 'authenticated users only' but does not prevent attacks by malicious insiders or compromised credentials. (3) Run Gotenberg in isolated containers with read-only root filesystems where feasible, mounting only necessary directories as writable with minimal permissions - limits file manipulation scope but may interfere with legitimate ExifTool operations depending on workload. (4) Deploy network segmentation to restrict Gotenberg access to trusted internal services only - prevents public internet exploitation but does not defend against lateral movement post-compromise. (5) Monitor filesystem activity in Gotenberg containers for unexpected file renames, moves to non-standard paths, or permission changes using auditd or container security tools - provides detection but not prevention. Each mitigation trades functionality or operational complexity for security; combination of controls 2, 3, and 4 offers best risk reduction until patching.

Affected VersionsENISA

gotenberg < 8.31.0

Affected Packages

go github.com/gotenberg/gotenberg/v7 no fix
go github.com/gotenberg/gotenberg/v8 fix: 8.31.0
euvd gotenberg fix: 8.31.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gotenberg is a Docker-powered stateless API for converting HTML/Office documents to PDF, written in Go (github.com/gotenberg/gotenberg/v8). It integrates ExifTool for metadata manipulation. The vulnerability lies in exiftool.go's validation logic: the blocklist uses exact string comparison (strings.EqualFold) against bare tag names like 'FileName', 'Directory', 'HardLink', and 'SymLink', but ExifTool's tag specification allows group prefixes (e.g., 'System:FileName') where the group name and tag are separated by a colon. Gotenberg's regex validator explicitly permits colons in tag names (^[a-zA-Z0-9\-_.:]+$), allowing prefixed variants to pass validation. Since ExifTool internally normalizes 'System:FileName' to 'FileName' at execution time, attackers supply semantically equivalent tags that bypass blocklist checks but trigger dangerous filesystem operations. The root cause is CWE-20 (Improper Input Validation) - the filter operates on syntactic form rather than semantic meaning, creating a classic evasion scenario analogous to SQL injection's use of encoding bypasses. Additionally, 'FilePermissions' is entirely absent from the blocklist, enabling chmod operations without evasion techniques.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/gotenberg/gotenberg) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
SUSE HIGH

Primary rating from Vendor (https://github.com/gotenberg/gotenberg).

CVSS VectorVendor: https://github.com/gotenberg/gotenberg

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

Lifecycle Timeline

1
Patch available
May 14, 2026 - 18:02 EUVD

DescriptionCVE.org

Summary

Gotenberg blocks certain ExifTool tag names like FileName and Directory to stop attackers from renaming or moving files on the server. But ExifTool allows a longer form of the same tag - System:FileName - which does the exact same thing. Gotenberg only checks if the tag is exactly FileName, so System:FileName slips right through and ExifTool happily renames the file. No login is needed. One HTTP request is enough.

This bypasses the fix from GHSA-qmwh-9m9c-h36m.

Details

Think of it like a nightclub bouncer with a blocklist of banned names. The blocklist says "Block anyone named John." A person shows up and says "I'm Mr. John." The bouncer checks - "Mr. John" is not "John" - so he lets them in. But inside the club, everyone knows Mr. John IS John.

That's exactly what happens here:

The blocklist (exiftool.go line 275-280) blocks these tag names:

FileName
Directory
HardLink
SymLink

The check (exiftool.go line 295-301) compares what the user sent against this list:

go
if strings.EqualFold(key, tag) {   // is "System:FileName" equal to "FileName"?
    delete(metadata, key)            // no - so it's NOT deleted
}

System:FileName is not equal to FileName (one is 16 characters, the other is 8), so it passes through.

But ExifTool treats them as the same thing. In ExifTool, System: is just a group prefix - like a folder name before the tag. System:FileName and FileName both mean "rename this file." The ExifTool docs say: *"A tag name may include leading group names separated by colons."*

Why the colon is allowed: The key validation regex (exiftool.go line 31) explicitly permits colons:

go
var safeKeyPattern = regexp.MustCompile(`^[a-zA-Z0-9\-_.:]+$`)
//                                                    ^ colon is allowed

So the full chain is:

  1. Attacker sends System:FileName → passes the regex (colon is allowed)
  2. System:FileName → passes the blocklist (it's not equal to FileName)
  3. ExifTool receives System:FileName → treats it as FileName → renames the file

Bonus finding: The FilePermissions tag is not in the blocklist at all. Sending {"FilePermissions": "rwxrwxrwx"} tells ExifTool to chmod the file, and nothing stops it.

PoC

Setup - start Gotenberg with default settings:

bash
docker run -d --name gotenberg-poc -p 3000:3000 gotenberg/gotenberg:8

Create a folder inside the container where we'll move the file to:

bash
docker exec gotenberg-poc mkdir -p /tmp/evil

Send the attack - one curl command:

bash
curl -X POST http://localhost:3000/forms/pdfengines/metadata/write \
  -F 'files=@any-pdf-file.pdf' \
  -F 'metadata={"System:FileName":"stolen.pdf","System:Directory":"/tmp/evil"}'

This returns HTTP 404 because the file got moved before the server could return it.

Check that the file actually moved:

bash
docker exec gotenberg-poc ls -la /tmp/evil/

Result:

-rw-r--r-- 1 gotenberg gotenberg 17789 Apr 13 07:40 stolen.pdf

The file is sitting in /tmp/evil/stolen.pdf. It was renamed from its random UUID name to stolen.pdf and moved out of the temporary directory - exactly what the blocklist was supposed to prevent.

Proof that the existing blocklist works for bare names (control test):

bash
curl -X POST http://localhost:3000/forms/pdfengines/metadata/write \
  -F 'files=@any-pdf-file.pdf' \
  -F 'metadata={"FileName":"stolen.pdf","Directory":"/tmp/evil"}'

This returns HTTP 500 - the bare FileName tag was correctly blocked. Only the System:FileName variant gets through.

Other ways to exploit the same bug:

  • system:filename (lowercase) - also works because ExifTool is case-insensitive
  • system:directory - moves the file to any writable folder
  • FilePermissions - changes the file's permissions (this tag is simply missing from the blocklist entirely)

Every endpoint that accepts the metadata field is affected, including /forms/chromium/convert/html, /forms/libreoffice/convert, /forms/pdfengines/merge, and all other conversion routes.

Impact

Any person who can send HTTP requests to Gotenberg (no login needed by default) can:

  • Move files anywhere inside the container by using System:Directory
  • Rename files to anything by using System:FileName
  • Change file permissions by using FilePermissions (this tag is not blocked at all)
  • Break the service for other users - when a file gets moved mid-request, the server returns 404 errors

In real-world deployments where Gotenberg shares a Docker volume with other services (which is common), an attacker can drop a PDF file with controlled content into that shared folder - potentially affecting whatever service reads files from there.

Executive ViewAI

Why It Matters

Gotenberg 8.x contains an input validation bypass that allows unauthenticated remote attackers to manipulate file metadata through group-prefixed tag names, potentially enabling arbitrary file operations within the container environment. Organizations deploying Gotenberg for document conversion should immediately assess whether their instances accept metadata input and evaluate container isolation configurations, as exploitation could lead to unauthorized file modifications affecting application integrity and data confidentiality.

Business Impact: High
Compensating Controls

Implement network segmentation to restrict access to Gotenberg metadata-accepting endpoints (POST /forms/libreoffice/convert, /forms/pdfengines/convert, and similar) to authenticated internal services only. Disable metadata input parameters at the application layer if not required. Run Gotenberg in a restrictive container environment with read-only filesystems where possible, and monitor container filesystem activity for unauthorized file operations. No vendor-released patch identified at time of analysis.

Threat Intelligence Overview

EPSS Score
0.1%
Top 72% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy