Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Gotenberg: Path traversal in zip entry name via Windows-style separators in upload filename
Vulnerability 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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
Gotenberg 路径遍历漏洞
Vulnerability Description
Gotenberg是Gotenberg团队开源的一个文档转换应用服务器。 Gotenberg 8.33.0之前版本存在路径遍历漏洞,该漏洞源于pkg/modules/api/context.go文件中的文件名处理在Linux环境下使用filepath.Base,未将反斜杠视为路径分隔符,导致包含Windows样式父目录组件的文件名绕过清理,远程攻击者可通过上传或Content-Disposition标头提交恶意文件名,当解压返回的压缩包时可能导致任意文件写入。
CVSS Information
N/A
Vulnerability Type
N/A