An attacker can use a flaw in Anthropic Claude's document-processing tool to run malicious code on Linux systems just by creating a temporary file that the AI assistant can access. The flaw highlights a growing risk posed by even trusted AI tools to introduce security gaps in enterprise environments. Researchers from AIR Security discovered the flaw, which they've dubbed "Office Party," in Anthropic's official DOCX, PPTX, and XLSX skills, which are tools that enable Claude to create, read, edit, and process Microsoft Word documents, PowerPoint presentations, and Excel spreadsheets, respectively. The vulnerability stems from a helper script, soffice.py, that launches LibreOffice to convert documents, including rendering Word documents as PDFs, they revealed in a report published today. When the script encounters an environment where Unix-domain sockets cannot be opened, it uses a workaround that loads a shared library through the Linux LD_PRELOAD mechanism. Anthropic has opted not to fix the issue. During conversation, the script checks whether a library named lo_socket_shim.so already exists in a shared temporary directory but does not verify its origin or contents. An attacker who can place a malicious library at that location before the next document-processing operation can potentially have their code loaded and executed within LibreOffice, with the privileges of the user running the AI agent. In this way, the flaw can allow attackers to execute malicious code on a user's ...
Attackers Crash Claude's 'Office Party' Flaw to Run Malicious Code on Linux
Affected Software
Frequently Asked Questions
Which Claude components are affected by the Office Party flaw?
The issue affects Anthropic's official DOCX, PPTX, and XLSX skills, which Claude uses to create, read, edit, and process Microsoft Word, PowerPoint, and Excel files. The reported vulnerable helper script is soffice.py, which launches LibreOffice for document conversion.
How could an attacker trigger malicious code execution?
An attacker can create a temporary file accessible to the AI assistant. When soffice.py cannot open Unix-domain sockets, it uses an LD_PRELOAD-based workaround and checks for lo_socket_shim.so in a shared temporary directory without verifying the library's origin or contents.
What systems are at risk?
The reported impact is malicious code execution on Linux systems. The vulnerable behavior involves the Linux LD_PRELOAD mechanism and a shared temporary directory.
Has the issue been fixed?
No. Anthropic has opted not to fix the issue, according to the report.