libreoffice-convert: path traversal / arbitrary file write
cve-program · CVE-2026-54732
Publishedlibreoffice-convert is a Node.js module for converting office documents to different formats. Prior to 1.8.2, index.js uses the caller-controlled options.fileName value in path.join(tempDir.name, fileName) without reducing it to a base name. A filename containing ../ can escape the temporary directory because path.basename() normalization is missing and write the supplied document buffer to an arbitrary path writable by the process, including an SSH authorized_keys file, a cron configuration, or a web root. This issue is fixed in version 1.8.2.
Read the publisher's advisoryeuvd · EUVD-2026-67161
Publishedlibreoffice-convert is a Node.js module for converting office documents to different formats. Prior to 1.8.2, index.js uses the caller-controlled options.fileName value in path.join(tempDir.name, fileName) without reducing it to a base name. A filename containing ../ can escape the temporary directory because path.basename() normalization is missing and write the supplied document buffer to an arbitrary path writable by the process, including an SSH authorized_keys file, a cron configuration, or a web root. This issue is fixed in version 1.8.2.
Read the publisher's advisorynvd · CVE-2026-54732
Publishedlibreoffice-convert is a Node.js module for converting office documents to different formats. Prior to 1.8.2, index.js uses the caller-controlled options.fileName value in path.join(tempDir.name, fileName) without reducing it to a base name. A filename containing ../ can escape the temporary directory because path.basename() normalization is missing and write the supplied document buffer to an arbitrary path writable by the process, including an SSH authorized_keys file, a cron configuration, or a web root. This issue is fixed in version 1.8.2.
Read the publisher's advisoryosv · GHSA-gmxc-r82q-347r
Published### 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`.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-54732 · CVE overview and exploitation status
cve-program · CVE-2026-54732
- https://github.com/elwerene/libreoffice-convert/security/advisories/GHSA-gmxc-r82q-347r
- https://github.com/elwerene/libreoffice-convert/commit/b78f17df9b9183bd503fc4635fc8b3df6705047b
euvd · EUVD-2026-67161
- https://github.com/elwerene/libreoffice-convert/security/advisories/GHSA-gmxc-r82q-347r
- https://github.com/elwerene/libreoffice-convert/commit/b78f17df9b9183bd503fc4635fc8b3df6705047b
nvd · CVE-2026-54732
- https://github.com/elwerene/libreoffice-convert/commit/b78f17df9b9183bd503fc4635fc8b3df6705047b
- https://github.com/elwerene/libreoffice-convert/security/advisories/GHSA-gmxc-r82q-347r
osv · GHSA-gmxc-r82q-347r
Related changes
Linked by CVE identifierNo related changes are available here.