Skip to content
OpenAdvisories
High · 8.8 CVE-2026-44829 EUVD-2026-62427GHSA-hwc4-gmrw-5222GO-2026-5443

Gotenberg: Path traversal in zip entry name via Windows-style separators in upload filename

Published Aug 19, 2026 · Updated Aug 19, 2026 · Assigned by GitHub_M

Description

Gotenberg is a Docker-powered stateless API for PDF files. In 8.32.0 and earlier, filename handling in pkg/modules/api/context.go uses filepath.Base on Linux, which does not treat backslashes as path separators, so a multipart filename containing Windows-style parent directory components survives sanitization. The original filename flows through ctx.diskToOriginal and the multi-output PDF routes into archives.FilesFromDisk and archives.Zip.Archive as the generated zip entry name. A remote attacker can submit a name such as ........\Windows\System32\evil.pdf through an upload or an upstream downloadFrom Content-Disposition header, and a Windows archive extractor can write the resulting file outside the intended extraction directory. The affected paths include /forms/pdfengines/split and other multi-output PDF, LibreOffice, and conversion routes, and exploitation can cause arbitrary file writes on a downstream Windows system when a user or process extracts the returned archive. This issue is fixed in version 8.33.0.

Affected products

VendorProductAffectedFixed
gotenberg gotenberg < 8.33.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gotenberg/gotenberg/v7 all versions — GO-2026-5443
Go github.com/gotenberg/gotenberg/v8 < 8.33.0 8.33.0 GHSA-hwc4-gmrw-5222

Advisories 1

References