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.
Published: 2026-08-27
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 27 Aug 2026 18:00:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-27T17:21:50.743Z

Reserved: 2026-06-15T23:07:33.232Z

Link: CVE-2026-54732

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-27T20:17:50.143

Modified: 2026-08-27T20:17:50.143

Link: CVE-2026-54732

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T07:30:07Z

Weaknesses
  • CWE-22

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