External Control of File Name or Path Affecting github.com/gotenberg/gotenberg/v8/pkg/modules/libreoffice package, versions <8.32.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about External Control of File Name or Path vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOTENBERGGOTENBERGV8PKGMODULESLIBREOFFICE-16438318
  • published7 May 2026
  • disclosed7 May 2026
  • creditadrgs

Introduced: 7 May 2026

CVE-2026-42593  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade github.com/gotenberg/gotenberg/v8/pkg/modules/libreoffice to version 8.32.0 or higher.

Overview

Affected versions of this package are vulnerable to External Control of File Name or Path via the stampExpression and watermarkExpression parameters in the merge, split, and convert routes. An attacker can access the contents of arbitrary PDF files on the server by supplying a path to a PDF file that the process can read, causing the file's contents to be included in the output PDF returned to the attacker. This is only exploitable if the service is exposed to unauthenticated users and the attacker can control the relevant parameters.

CVSS Base Scores

version 4.0
version 3.1