CVE-2026-54732

libreoffice-convert: path traversal / arbitrary file write

Published Aug 27, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
libreoffice-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.

Analysis

AI-generated

Technical impact

The vulnerability in libreoffice-convert allows a caller to supply a document filename that contains directory traversal sequences. Because the module concatenates this filename to a temporary directory without sanitization, an attacker can write the processed document buffer to any location writable by the process. This results in arbitrary file creation or overwrite, potentially compromising privileged configuration files such as SSH authorized_keys, cron jobs, or web root contents. The weakness is a classic path traversal flaw (CWE-22).

Affected Systems

The affected product is the Node.js module libreoffice-convert from the elwerene project, versions prior to 1.8.2. The issue manifests whenever the module processes a filename supplied by an external trust boundary. Specific versions older than 1.8.2 are impacted; 1.8.2 and later contain the fix.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate to high severity. EPSS data is not available, so precise exploitation frequency cannot be quantified, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is remote exploitation via an application that uses libreoffice-convert and accepts untrusted filenames. Once the module writes the payload, the attacker gains the same privileges as the Node.js process, which can be a system-level user in many hosting scenarios. The vulnerability can lead to full compromise of the host system if critical configuration files are overwritten.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libreoffice-convert to version 1.8.2 or later.
  • Validate and sanitize filenames supplied to libreoffice-convert, rejecting path traversal sequences such as "..".
  • Configure the temporary directory to a secure, non-public location and restrict its permissions to prevent the overwriting of privileged files.

Generated by OpenCVE AI on August 28, 2026 at 07:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-gmxc-r82q-347r libreoffice-convert vulnerable to path traversal / arbitrary file write
History
Type Values Removed Values Added
First Time appeared Elwerene
Elwerene libreoffice-convert
Vendors & Products Elwerene
Elwerene libreoffice-convert
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description libreoffice-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.
Title libreoffice-convert: path traversal / arbitrary file write
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 28, 2026, 2:54 PM
Reserved
Jun 15, 2026, 11:07 PM
Status
Deferred
Published
Aug 27, 2026, 8:17 PM
Modified
Sep 9, 2026, 9:09 PM