docx
Audited by Socket on Nov 22, 2026
2 alerts found:
SecurityAnomalyThis module is a document-processing utility that performs headless LibreOffice execution by installing and running a LibreOffice Basic macro from a runtime-writable profile in /tmp. The wrapper itself shows no network access or credential theft, but it provides a strong code-execution primitive (macro write + macro execution via UNO script). Because the macro payload (ACCEPT_CHANGES_MACRO) is not present in the provided fragment, its behavior cannot be verified; if that payload were malicious or tampered, the impact could be substantial within the LibreOffice execution context. Additionally, timeout handling may misreport success, which can undermine output integrity.
The script can write C source at runtime, compile it into a shared library with gcc, and load it into the soffice process via LD_PRELOAD. Because the native shim’s source is missing or truncated, its behavior cannot be verified, and it could execute native code within the soffice process.