PT-2026-82688 · Npm · Libreoffice-Convert
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
libreoffice-convert versions prior to 1.8.2
Description
The
index.js file fails to normalize the options.fileName variable using path.basename() when constructing a filesystem path via path.join(tempDir.name, fileName). This allows a caller to provide a filename containing path traversal sequences like ../, enabling the writing of a document buffer to arbitrary paths writable by the process, such as SSH authorized keys files, cron configurations, or web roots.Recommendations
Update to version 1.8.2.
As a temporary workaround, ensure the
options.fileName variable is not user-supplied or apply path.basename() to the filename before passing it to the module.Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Libreoffice-Convert