CVE-2016-4324
High · 7.8CVSS
7.8
EPSS
2.8%
Published
Jul 8, 2016
CISA due date
—
Cloudanix analysis
Opening a specially made document file can let attackers take over a computer that has not been updated.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Use-after-free condition triggered by stylesheet and superscript tokens in crafted RTF input allows arbitrary code execution in the affected document processor.
Why it matters to the business
Attackers can gain full control of systems that open malicious documents, leading to data theft, ransomware deployment, or persistent access with high operational disruption for any organization still using the vulnerable software.
How an attack unfolds
An attacker creates an RTF file containing specially crafted stylesheet and superscript tokens that trigger the use-after-free. The file is delivered to the victim (via email, download, or shared storage). When opened in the vulnerable application, the freed memory is reused for attacker-controlled code, resulting in arbitrary execution without further user interaction beyond opening the document.
How to fix it
Upgrade kine (Chainguard) and kine (Wolfi) to version 0.11.3-r2 or later. Remove or isolate any systems still running older versions until patches are applied.
How to confirm the fix worked
Verify installed package versions match or exceed the fixed releases; attempt to open known-good and known-malicious RTF test files in a controlled environment to confirm the vulnerability is no longer present.
Typical attack path
- Craft RTF file with stylesheet and superscript tokens that trigger use-after-free
- Deliver file to target via email, web download, or file share
- Victim opens the file in the vulnerable application
- Use-after-free is triggered and attacker shellcode executes
- Establish persistence, escalate privileges, or exfiltrate data
How to detect it
Search application and system logs for crashes or unexpected terminations immediately after RTF file opens; correlate with process creation events showing child shells or network activity from the document processor.
- LibreOffice process crash immediately after RTF open
- Unexpected child process spawned from soffice.bin or oosplash
What your security team should do
- Immediately inventory all instances of the affected packages and prioritize upgrade to 0.11.3-r2
- Block or sandbox RTF file handling from untrusted sources until patches are deployed
- Update detection rules to monitor for unexpected process behavior after RTF file access
- Review historical document-processing logs for any signs of prior exploitation given the multi-year exposure window
The record
Use-after-free vulnerability in LibreOffice before 5.1.4 allows remote attackers to execute arbitrary code via a crafted RTF file, related to stylesheet and superscript tokens.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libreoffice | 0 | 1:5.1.4~rc1-1 |
| Debian:12 | libreoffice | 0 | 1:5.1.4~rc1-1 |
| Debian:13 | libreoffice | 0 | 1:5.1.4~rc1-1 |
| Debian:7 | libreoffice | 0 | 1:3.5.4+dfsg2-0+deb7u7 |
| Debian:8 | libreoffice | 0 | 1:4.3.3-2+deb8u5 |
| Mageia:5 | libcdr | 0 | 0.1.2-1.mga5 |
| Mageia:5 | libreoffice | 0 | 4.4.7.2-3.mga5 |
| Mageia:5 | librevenge | 0 | 0.0.4-1.mga5 |
| Mageia:5 | libvisio | 0 | 0.1.5-1.mga5 |
| Mageia:5 | libwpd | 0 | 0.10.1-1.mga5 |
| SUSE:Linux Enterprise Desktop 12 SP1 | libreoffice | 0 | 5.1.5.2-29.4 |
| SUSE:Linux Enterprise Workstation Extension 12 SP1 | libreoffice | 0 | 5.1.5.2-29.4 |
| Ubuntu:16.04:LTS | libreoffice | 0 | 1:5.1.4-0ubuntu1 |
| openSUSE:Tumbleweed | libreoffice | 0 | 5.2.3.3-2.2 |
Related vulnerabilities
- CVE-2024-12426 Exposure of Environmental Variables and arbitrary INI file values to an Unauthorized… Also affects libreoffice
- CVE-2024-12425 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… Also affects libreoffice
- CVE-2024-7788 Improper Digital Signature Invalidation vulnerability in Zip Repair Mode of The Document… Also affects libreoffice
- CVE-2021-25636 LibreOffice supports digital signatures of ODF documents and macros within documents… Also affects libreoffice
- CVE-2021-25633 LibreOffice supports digital signatures of ODF documents and macros within documents… Also affects libreoffice
- CVE-2017-3157 By exploiting the way Apache OpenOffice before 4.1.4 renders embedded objects, an… Also affects libreoffice
- CVE-2017-12607 A vulnerability in OpenOffice's PPT file parser before 4.1.4, and specifically in… Also affects libreoffice
- CVE-2016-10327 LibreOffice before 2016-12-22 has an out-of-bounds write caused by a heap-based buffer… Also affects libreoffice