# Office Party: a planted temp file makes Claude's document skills run code

> Source: <https://www.air.security/blog-posts/office-party>
> Published: 2026-11-05 00:00:00+00:00

**Recommendation:** Audit agent skills that load shared libraries from fixed temp paths, and verify file ownership or use per-run private directories before any LD_PRELOAD fallback.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

AIR Security disclosed a code-execution flaw in Anthropic's official DOCX, PPTX and XLSX skills, which Claude uses to create and convert documents. The shared helper scripts/office/soffice.py falls back to loading lo_socket_shim.so through LD_PRELOAD when it cannot open a Unix socket, a condition that includes Claude Code's own sandbox. It uses a fixed path in the shared temp directory and reuses any file already there without checking who wrote it, so an attacker who can write that file gets code execution inside LibreOffice with the agent user's privileges. AIR demonstrated both direct placement and a second, apparently benign skill that unpacked the library into /tmp. The researchers reported it to Anthropic in May; Anthropic acknowledged the issue but said the sandboxed code is outside its security boundary, and the helper was still unchanged on 5 November.
