CVE-2026-54732: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in elwerene libreoffice-convert
Description
CVE-2026-54732 is a path traversal vulnerability in the Node.js module libreoffice-convert prior to version 1.8.2. The module improperly handles the caller-controlled fileName parameter by using it directly in path.join without normalizing it to a base name. This allows an attacker to escape the intended temporary directory and write files to arbitrary locations writable by the process, potentially overwriting sensitive files such as SSH authorized_keys, cron configurations, or web root files. The issue is fixed in version 1.8.2.
CVSS v3.1
Score 6.5medium
Affected software
elwerene
libreoffice-convert
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in libreoffice-convert arises from improper limitation of a pathname to a restricted directory (CWE-22). Specifically, prior to version 1.8.2, the module uses the caller-controlled options.fileName value directly in path.join(tempDir.name, fileName) without applying path.basename() normalization. This omission allows filenames containing '../' sequences to traverse directories and write files outside the intended temporary directory. An attacker can exploit this to write arbitrary files to locations writable by the process, including critical system or application files. The vulnerability is addressed in version 1.8.2 by properly normalizing the filename input.
Potential Impact
An attacker with the ability to control the fileName parameter can write arbitrary files to any location writable by the process running libreoffice-convert. This can lead to unauthorized modification of sensitive files such as SSH authorized_keys, cron jobs, or web server files, potentially enabling privilege escalation, persistent access, or web-based attacks. The CVSS score of 6.5 (medium severity) reflects the network attack vector, low attack complexity, requirement for privileges, no user interaction, unchanged scope, no confidentiality impact, high integrity impact, and no availability impact.
Mitigation Recommendations
This vulnerability is fixed in libreoffice-convert version 1.8.2. Users should upgrade to version 1.8.2 or later to mitigate this issue. No other mitigation is indicated by the vendor advisory or source information.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T23:07:33.232Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a909cf4acd9273b49b2cddc
Added to database: 08/27/2026, 20:24:20 UTC
Last enriched: 09/10/2026, 04:24:06 UTC
Last updated: 10/10/2026, 18:48:20 UTC
Views: 32
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.