{"id":"CVE-2026-44829","state":"PUBLISHED","title":"Gotenberg: Path traversal in zip entry name via Windows-style separators in upload filename","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.","publishedAt":"2026-08-19T14:35:06.966Z","updatedAt":"2026-08-19T18:19:27.164Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["gotenberg gotenberg"],"affected":[{"vendor":"gotenberg","product":"gotenberg","versions":[{"version":"< 8.33.0","status":"affected"}]}],"references":["https://github.com/gotenberg/gotenberg/security/advisories/GHSA-hwc4-gmrw-5222","https://github.com/gotenberg/gotenberg/issues/662","https://github.com/gotenberg/gotenberg/commit/93d0103585372433e18b351bb16edf4c383932d3","https://github.com/gotenberg/gotenberg/releases/tag/v8.33.0"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/44xxx/CVE-2026-44829.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-44829","state":"PUBLISHED","datePublished":"2026-08-19T14:35:06.966Z","dateUpdated":"2026-08-19T18:19:27.164Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-07T21:21:48.351Z"},"containers":{"cna":{"title":"Gotenberg: Path traversal in zip entry name via Windows-style separators in upload filename","descriptions":[{"lang":"en","value":"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":[{"vendor":"gotenberg","product":"gotenberg","versions":[{"version":"< 8.33.0","status":"affected"}]}],"references":[{"url":"https://github.com/gotenberg/gotenberg/security/advisories/GHSA-hwc4-gmrw-5222","name":"https://github.com/gotenberg/gotenberg/security/advisories/GHSA-hwc4-gmrw-5222","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gotenberg/gotenberg/issues/662","name":"https://github.com/gotenberg/gotenberg/issues/662","tags":["x_refsource_MISC"]},{"url":"https://github.com/gotenberg/gotenberg/commit/93d0103585372433e18b351bb16edf4c383932d3","name":"https://github.com/gotenberg/gotenberg/commit/93d0103585372433e18b351bb16edf4c383932d3","tags":["x_refsource_MISC"]},{"url":"https://github.com/gotenberg/gotenberg/releases/tag/v8.33.0","name":"https://github.com/gotenberg/gotenberg/releases/tag/v8.33.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-19T14:35:06.966Z"},"source":{"advisory":"GHSA-hwc4-gmrw-5222","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-19T18:03:43.071414Z","id":"CVE-2026-44829","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-19T18:19:27.164Z"}}]}}}