{"id":"CVE-2026-54732","aliases":["CVE-2026-54732","GHSA-gmxc-r82q-347r"],"related":[],"kind":"vulnerability","state":"published","title":"libreoffice-convert: path traversal / arbitrary file write","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\noptions.fileName is used to build a filesystem path\n(path.join(tempDir.name, fileName)) and the caller-supplied document buffer is\nwritten there, but fileName is never reduced to a base name. A fileName containing\n\"../\" escapes the temporary directory, so a caller can write arbitrary content to an\narbitrary path the process can write to (e.g. ~/.ssh/authorized_keys, an /etc/cron.d\nentry, or a web root).\n\n### Patches\nVersion 1.8.2 uses `path.basename` on `filename` to make sure the temp directory can not be escaped.\n\n### Workarounds\nMake 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`.","format":"markdown","source":"ghsa"}],"published":"2026-08-27T17:21:50.743Z","modified":"2026-09-09T21:09:13.080Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 1.8.2","status":"affected"}],"vendor":"elwerene","product":"libreoffice-convert","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.2"}],"ecosystem":"npm","package":"libreoffice-convert","purl":"pkg:npm/libreoffice-convert","source":"ghsa"}],"references":[{"url":"https://github.com/elwerene/libreoffice-convert/security/advisories/GHSA-gmxc-r82q-347r","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/elwerene/libreoffice-convert/commit/b78f17df9b9183bd503fc4635fc8b3df6705047b","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/elwerene/libreoffice-convert","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-28T14:53:50.098Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54732","url":"https://www.cve.org/CVERecord?id=CVE-2026-54732","licence":"CVE Terms of Use","modified":"2026-08-28T14:54:16.963Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gmxc-r82q-347r","url":"https://github.com/advisories/GHSA-gmxc-r82q-347r","licence":"CC-BY-4.0","modified":"2026-08-27T17:40:40.102Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54732","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54732","licence":"Public domain","modified":"2026-09-09T21:09:13.080Z"}],"updatedAt":"2026-11-25T22:59:35.529Z","epss":{"score":0.003,"percentile":0.24521,"date":"2026-12-01T12:00:22.000Z"}}