Skip to main content

libreoffice-convert CVE-2026-54732

| EUVDEUVD-2026-67161 MEDIUM
Path Traversal (CWE-22)
2026-08-27 https://github.com/elwerene/libreoffice-convert GHSA-gmxc-r82q-347r
6.5
CVSS 3.1 · Vendor: https://github.com/elwerene/libreoffice-convert
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit conversion request with traversal fileName value
  2. Delivery
    Application forwards user-supplied fileName to libreoffice-convert
  3. Exploit
    path.join resolves '../' sequences outside temp directory
  4. Execution
    Document buffer written to attacker-chosen filesystem path
  5. Impact
    Attacker achieves persistence or code execution via planted file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the consuming application accepts options.fileName from untrusted caller or user input and passes it directly to libreoffice-convert without normalization. Applications that construct the fileName option internally from a safe, controlled value are not exploitable. The CVSS PR:L reflects that the attacker must be able to trigger a document conversion request through the application - anonymous unauthenticated access is not confirmed by the vector alone. The write impact is bounded by the OS-level filesystem permissions of the Node.js process: writing to root-owned system files (e.g., /etc/passwd) requires the process to run as root, which is atypical for web services. The most realistic high-impact targets are paths writable by the application user: SSH authorized_keys, user-owned cron entries, or files within a web root.

Impact

The CVSS 6.5 score (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N) accurately represents the mechanics: network-reachable, low complexity, requiring only that the caller can invoke a conversion request with a controlled filename - no elevated OS privilege needed. The high Integrity impact is well-calibrated: arbitrary file write as the process user can establish SSH persistence, inject cron jobs, or plant web shells, making this functionally equivalent to remote code execution in many deployments. However, the PR:L metric is key to contextualizing real-world risk - this is a library vulnerability, not a standalone service, so the blast radius depends entirely on whether the consuming application forwards untrusted user input as fileName. A document conversion API that constructs filenames internally is unexploitable here. No EPSS score was provided, and no KEV listing exists, indicating exploitation has not been observed at scale. The fix is trivial to apply and the workaround (caller-side path.basename) requires no dependency update.

Exploit ScenarioDerived

An attacker submitting a document to a public-facing Node.js conversion service sets the filename field to ../../.ssh/authorized_keys. The service passes this value unchecked as options.fileName to libreoffice-convert, which writes the attacker-controlled document buffer - crafted to contain a valid SSH public key - to the server's authorized_keys file. This grants the attacker SSH access to the host as the application user. No public exploit code has been identified at time of analysis, but the technique requires no specialized tooling.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 27, 2026

Arbitrary file write in the libreoffice-convert npm package (all versions prior to 1.8.2) allows any caller who supplies a user-controlled fileName option to escape the intended temporary directory and overwrite arbitrary filesystem paths accessible to the Node.js process. The root cause is unsanitized use of path.join(tempDir.name, fileName) - a ../-laden filename resolves outside the temp dir without restriction. With no public exploit identified at time of analysis and no CISA KEV listing, risk is contingent on whether consuming applications expose fileName to untrusted input, but the write primitive is trivially exploitable in document-conversion web services.

RemediationAI

Upgrade libreoffice-convert to version 1.8.2 or later. The patch is a single-line fix in index.js that applies path.basename() to the filename before constructing the temp path; it is available at commit b78f17df9b9183bd503fc4635fc8b3df6705047b (https://github.com/elwerene/libreoffice-convert/commit/b78f17df9b9183bd503fc4635fc8b3df6705047b). If upgrading immediately is not possible, apply the vendor-documented workaround: ensure that the options.fileName value passed to libreoffice-convert is always internally generated (never derived from user input), or sanitize it with path.basename(userFileName) in the calling code before passing it to the library. The workaround is effective but requires auditing every call site. See the advisory at https://github.com/elwerene/libreoffice-convert/security/advisories/GHSA-gmxc-r82q-347r.

Affected VersionsENISA

libreoffice-convert < 1.8.2

Affected Packages

npm libreoffice-convert fix: 1.8.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the npm package libreoffice-convert (pkg:npm/libreoffice-convert), a Node.js wrapper that shells out to LibreOffice for document format conversion. The vulnerability is classified CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). Inside convertWithOptions in index.js, the expression path.join(tempDir.name, fileName) constructs a temp file path using the raw caller-supplied options.fileName value. Node.js's path.join faithfully resolves ../ components, so an input like ../../.ssh/authorized_keys produces a path outside the temp directory entirely. The fix in 1.8.2 is a single-character change: wrapping the filename extraction with path.basename(), which strips all directory components before the join, making traversal impossible regardless of input.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/elwerene/libreoffice-convert) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 6.5 MEDIUM

PR:L because caller must invoke the API with a controlled filename; C:N because this is a write-only primitive with no read capability; I:H for arbitrary file write.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/elwerene/libreoffice-convert).

CVSS VectorVendor: https://github.com/elwerene/libreoffice-convert

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
niche Node.js LibreOffice conversion wrapper, limited enterprise footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy