CVE-2026-40893

Gotenberg: ExifTool Dangerous Tag Blocklist Bypass via Group-Prefixed Tag Names Allows Arbitrary File Rename and Move

Published May 14, 2026 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
Description
Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg only checks if the tag is exactly FileName, so System:FileName slips right through and ExifTool happily renames the file. This allows remote attackers to move, rename, and change permissions for arbitrary files. This vulnerability is fixed in 8.31.0.

Analysis

AI-generated

Technical impact

Gotenberg is a Docker-powered stateless API for PDF generation. Prior to version 8.31.0 it validates ExifTool XML tags only against an exact match of the tag name "FileName". A crafted tag such as "System:FileName" bypasses this check, allowing ExifTool to treat the supplied value as a filename. The resulting file operation can rename, move, or change permissions of arbitrary files on the host. This gives a remote attacker the ability to manipulate files that may be critical to the host or other containers, potentially facilitating further compromise or data exfiltration. The weakness is a directory traversal and input validation flaw (CWE‑73 and CWE‑184).

Affected Systems

This vulnerability affects all Gotenberg Docker containers running forks of Gotenberg prior to 8.31.0. Any deployment that exposes the public API without internal network isolation or hardened file system mounts is at risk.

Risk and Exploitability

The CVSS score of 8.2 marks this as high severity. No EPSS score is reported, and it is not listed in the CISA KEV catalog. Exploitation requires only remote API access to the Gotenberg service, making the threat vector likely remote. An attacker can send a crafted ExifTool tag via the API to trigger the rename/move operation. Because this flaw permits arbitrary file manipulation, the potential for further privilege escalation or persistence exists if the attacker can then use the modified files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gotenberg version 8.31.0 or later to apply the ExifTool tag validation fix.
  • Configure the Gotenberg API endpoint to accept requests only from trusted IP ranges or authenticated users, reducing the attack surface exposed to public networks.
  • Run the Gotenberg container with a read‑only file system and the least privilege principle, ensuring the ExifTool process can only modify files in its dedicated workspace and cannot affect arbitrary host files.

Generated by OpenCVE AI on May 14, 2026 at 18:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-62p3-hvxx-fxg4 Gotenberg has an ExifTool Dangerous Tag Blocklist Bypass via Group-Prefixed Tag Names that Allows Arbitrary File Rename and Move
History
Type Values Removed Values Added
First Time appeared Thecodingmachine
Thecodingmachine gotenberg
CPEs cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:*
Vendors & Products Thecodingmachine
Thecodingmachine gotenberg
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gotenberg
Gotenberg gotenberg
Vendors & Products Gotenberg
Gotenberg gotenberg
Type Values Removed Values Added
Description Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg only checks if the tag is exactly FileName, so System:FileName slips right through and ExifTool happily renames the file. This allows remote attackers to move, rename, and change permissions for arbitrary files. This vulnerability is fixed in 8.31.0.
Title Gotenberg: ExifTool Dangerous Tag Blocklist Bypass via Group-Prefixed Tag Names Allows Arbitrary File Rename and Move
Weaknesses CWE-184
CWE-73
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 14, 2026, 6:08 PM
Reserved
Apr 15, 2026, 4:37 PM
Status
Analyzed
Published
May 14, 2026, 4:16 PM
Modified
Nov 11, 2026, 8:10 PM