Advisory

GHSA-gmxc-r82q-347r

Also known as: CVE-2026-54732

Summary

libreoffice-convert vulnerable to path traversal / arbitrary file write

Details

Impact
options.fileName is used to build a filesystem path
(path.join(tempDir.name, fileName)) and the caller-supplied document buffer is
written there, but fileName is never reduced to a base name. A fileName containing
"../" escapes the temporary directory, so a caller can write arbitrary content to an
arbitrary path the process can write to (e.g. ~/.ssh/authorized_keys, an /etc/cron.d
entry, or a web root).

Patches
Version 1.8.2 uses path.basename on filename to make sure the temp directory can not be escaped.

Workarounds
Make sure you supply the filename yourself and don't have it user supplied or use path.basename on filename before using it in libreoffice-convert.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-08-27 17:23 UTC
Modified
2026-08-27 17:40 UTC

Affected packages and fixes

libreoffice-convert

npm · All systems

Affected

  • introduced 0, fixed 1.8.2 (semver)

Fixed versions

1.8.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences