The Zero Day Initiative has published ZDI-26-895, a heap-based buffer overflow in LibreOffice's dBase (.dbf) file parsing routine, tracked as CVE-2026-76181 with a CVSS score of 7.8. The vulnerability allows remote attackers to execute arbitrary code in the context of the current user when a target opens a malicious dBase file or visits a malicious page that delivers one. No authentication is required — the only prerequisite is user interaction, which is exactly the barrier social engineering campaigns are built to overcome.
This is the class of vulnerability that fuels spear-phishing-driven initial access: a booby-trapped spreadsheet attachment, a drive-by download, or a file planted in a shared drive. Because LibreOffice is free and widely deployed — in government agencies, universities, small businesses, and as a secondary document viewer on many corporate endpoints — the exploitable surface is far larger than most asset inventories will admit. Defenders need to identify every installation, patch immediately, and put detection controls around the most likely abuse pattern: soffice.bin behaving like a compromised process.
Technical Analysis
Affected Component
The flaw exists in LibreOffice's dBase file parser — the code path responsible for ingesting .dbf database files (commonly associated with legacy database exports, GIS shapefile attribute tables, and financial/logistics data interchange). dBase files are parsed when opened directly, when referenced by embedded objects, or when a crafted document triggers the parser as a data source.
| Attribute | Detail |
|---|---|
| Advisory | ZDI-26-895 |
| CVE | CVE-2026-76181 |
| CVSS | 7.8 (High) |
| Vulnerability Class | Heap-based buffer overflow (CWE-122) |
| Affected Product | LibreOffice (all supported platforms: Windows, macOS, Linux) |
| Attack Vector | Local file open / malicious webpage (user interaction required) |
| Impact | Arbitrary code execution in the context of the logged-on user |
| Authentication | None required |
How the Exploitation Works (Defender's View)
A heap-based buffer overflow in a file parser means the application writes attacker-controlled data beyond the bounds of an allocated heap buffer while parsing a malformed .dbf structure — typically a crafted field-length or record-count value that the parser trusts without adequate bounds checking. From a defensive standpoint, the observable attack chain is:
- Delivery — a
.dbffile arrives via phishing email, download, or web lure. Note that.dbfis a low-reputation attachment type in most organizations, which makes it both an evasion choice and a detection opportunity. - Trigger — the user opens the file with LibreOffice Calc/Base.
soffice.exe/soffice.binloads and parses it. - Corruption — the overflow corrupts adjacent heap structures, giving the attacker control of execution flow within the
sofficeprocess. - Post-exploitation — shellcode or a staged payload executes under the user's context. The canonical indicator:
sofficespawning child processes (cmd.exe,powershell.exe,wscript.exe,mshta.exe,curl, shell interpreters) — behavior a document suite essentially never exhibits legitimately.
Exploitation Status
ZDI advisories of this type are coordinated disclosures; as of publication there is no confirmed in-the-wild exploitation and the CVE is not yet listed in the CISA KEV catalog. However, ZDI-26-895 is public, the technical class (file-parser heap overflow) is well understood by exploit developers, and working exploit chains for prior LibreOffice parser bugs have historically appeared within weeks of disclosure. Treat the window between disclosure and widespread patching as your highest-risk period. Given the CVSS 7.8 rating and unauthenticated nature, prioritize this in your patch cycle.
Detection & Response
The highest-fidelity detection for this vulnerability class is abnormal child process creation from the LibreOffice process, combined with monitoring for .dbf file delivery. The rules below are tuned to fire on exploitation behavior, not normal office use.
Sigma Rules
---
title: LibreOffice Spawning Suspicious Child Process
description: Detects soffice.exe/soffice.bin spawning shells, script interpreters, or LOLBins — consistent with post-exploitation after a document parser exploit such as CVE-2026-76181.
references:
- http://www.zerodayinitiative.com/advisories/ZDI-26-895/
- https://attack.mitre.org/techniques/T1203/
author: Security Arsenal
id: 3f9c1a72-4b6e-4d58-9a21-7c2e5f8b0d43
status: experimental
date: 2026/01/15
tags:
- attack.execution
- attack.t1203
logsource:
category: process_creation
product: windows
detection:
selection_parent:
ParentImage|endswith: '\soffice.bin'
selection_child:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
- '\pwsh.exe'
- '\wscript.exe'
- '\cscript.exe'
- '\mshta.exe'
- '\rundll32.exe'
- '\regsvr32.exe'
- '\curl.exe'
- '\certutil.exe'
- '\bitsadmin.exe'
- '\wmic.exe'
condition: selection_parent and selection_child
falsepositives:
- Rare macro-driven workflows launching scripts; review per host baseline
level: high
---
title: dBase File Downloaded via Browser or Email Client
description: Detects creation of .dbf files in user download or temp locations, a delivery vector for CVE-2026-76181 exploitation.
references:
- http://www.zerodayinitiative.com/advisories/ZDI-26-895/
- https://attack.mitre.org/techniques/T1566/
author: Security Arsenal
id: 8b2d4e61-1f7a-4c39-b5e2-9d0a6c3f7e15
status: experimental
date: 2026/01/15
tags:
- attack.initial_access
- attack.t1566.001
logsource:
category: file_event
product: windows
detection:
selection_name:
TargetFilename|endswith: '.dbf'
selection_path:
TargetFilename|contains:
- '\Downloads\'
- '\Temp\'
- '\AppData\Local\Temp\'
- 'INetCache'
- 'Content.Outlook'
condition: selection_name and selection_path
falsepositives:
- GIS, logistics, or legacy database workflows legitimately exchanging .dbf files; whitelist known source applications
level: medium
---
title: LibreOffice Process Crash Followed by Child Execution
description: Detects WerFault or crash-handler activity for soffice.bin closely associated with suspicious process launches — heap corruption during parse attempts often precedes or accompanies process instability.
references:
- http://www.zerodayinitiative.com/advisories/ZDI-26-895/
- https://attack.mitre.org/techniques/T1203/
author: Security Arsenal
id: c5e7a290-3d81-4f46-a62b-1e8f4d9c2b67
status: experimental
date: 2026/01/15
tags:
- attack.execution
- attack.t1203
logsource:
category: process_creation
product: windows
detection:
selection_crash:
Image|endswith:
- '\WerFault.exe'
- '\wermgr.exe'
CommandLine|contains: 'soffice'
condition: selection_crash
falsepositives:
- Genuine LibreOffice instability; correlate with child-process rule hits on the same host
level: medium
KQL — Microsoft Sentinel / Defender
// Hunt: LibreOffice spawning suspicious child processes (CVE-2026-76181 exploitation pattern)
DeviceProcessEvents
| where TimeGenerated > ago(14d)
| where InitiatingProcessFileName =~ "soffice.bin" or InitiatingProcessFileName =~ "soffice.exe"
| where FileName in~ ("cmd.exe","powershell.exe","pwsh.exe","wscript.exe","cscript.exe","mshta.exe","rundll32.exe","regsvr32.exe","curl.exe","certutil.exe","bitsadmin.exe","wmic.exe")
| project TimeGenerated, DeviceName, AccountName, InitiatingProcessFileName, FileName, ProcessCommandLine, InitiatingProcessCommandLine, SHA256
| order by TimeGenerated desc
;
// Companion hunt: .dbf files delivered via browser or email within the same window
DeviceFileEvents
| where TimeGenerated > ago(14d)
| where FileName endswith ".dbf"
| where FolderPath has_any ("Downloads","Temp","INetCache","Content.Outlook")
| project TimeGenerated, DeviceName, FileName, FolderPath, InitiatingProcessFileName, SHA256
| order by TimeGenerated desc
Velociraptor VQL
-- Hunt for LibreOffice child-process anomalies and dropped .dbf artifacts (CVE-2026-76181)
SELECT Pid, Ppid, Name, Exe, CommandLine, Username, CreateTime
FROM pslist(parent='soffice.bin')
WHERE Name =~ '(?i)(cmd|powershell|pwsh|wscript|cscript|mshta|rundll32|regsvr32|curl|certutil|bitsadmin|wmic)'
-- Enumerate recently created .dbf files in user-writable delivery locations
SELECT FullPath, Size, Mtime, Atime
FROM glob(globs=['C:/Users/*/Downloads/*.dbf',
'C:/Users/*/AppData/Local/Temp/*.dbf',
'C:/Users/*/AppData/Local/Microsoft/Windows/INetCache/**/*.dbf'])
WHERE Mtime > now() - 1209600
Remediation & Verification Script
The following PowerShell inventories LibreOffice installations across a machine, reports the installed version, and flags hosts that still need to be updated. Run via your RMM or as an Intune/SCCM detection script.
# CVE-2026-76181 — LibreOffice inventory and version verification
# Detect installed LibreOffice versions via registry uninstall keys
$paths = @(
'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*'
)
$installs = Get-ItemProperty $paths -ErrorAction SilentlyContinue |
Where-Object { $_.DisplayName -like 'LibreOffice*' } |
Select-Object DisplayName, DisplayVersion, InstallLocation
if (-not $installs) {
Write-Output 'CLEAN: No LibreOffice installation detected on this host.'
exit 0
}
foreach ($i in $installs) {
Write-Output ("FOUND: {0} | Version: {1} | Path: {2}" -f $i.DisplayName, $i.DisplayVersion, $i.InstallLocation)
# ACTION REQUIRED: verify DisplayVersion against the fixed build listed in the
# Document Foundation security advisory for CVE-2026-76181 and upgrade if older.
}
# Optional hardening: block .dbf attachments at the edge is preferred; as a local
# control, confirm Attack Surface Reduction rules are active (requires Defender):
$asr = Get-MpPreference | Select-Object -ExpandProperty AttackSurfaceReductionRules_Ids -ErrorAction SilentlyContinue
if ($asr -notcontains 'D4F940AB-401B-4EFC-AADC-AD5F3C50688A') {
Write-Output 'WARNING: ASR rule "Block all Office applications from creating child processes" is NOT enabled.'
# Enable it (audit first in production to gauge macro impact):
# Set-MpPreference -AttackSurfaceReductionRules_Ids D4F940AB-401B-4EFC-AADC-AD5F3C50688A -AttackSurfaceReductionRules_Actions Enabled
}
Remediation
- Patch immediately. Upgrade all LibreOffice installations to the fixed release referenced in The Document Foundation's security advisory for CVE-2026-76181 and the ZDI advisory at http://www.zerodayinitiative.com/advisories/ZDI-26-895/. Verify the patched version number against the vendor advisory — do not assume auto-update has run; LibreOffice's updater is user-driven on many deployments. Check both MSI-deployed and user-installed copies.
- Inventory the real estate. Search for
soffice.bin,swriter.exe,scalc.exe, and portable copies (e.g., PortableApps bundles) that will not appear in standard uninstall keys. Portable installs are invisible to most patch management pipelines and are prime dwell-time territory. - Apply ASR / child-process controls. On Windows, enable the Microsoft Defender ASR rule Block all Office applications from creating child processes (GUID
D4F940AB-401B-4EFC-AADC-AD5F3C50688A). It applies to LibreOffice process trees in many configurations and directly breaks the post-exploitation chain. Audit first if users rely on macro-driven workflows. - Filter
.dbfat the perimeter. Block or sandbox-detune.dbfattachments at the email gateway and flag them in web download policies. Unless your organization runs GIS or legacy database exchange, inbound.dbfis almost never legitimate. - Harden the client. Ensure users run LibreOffice under standard (non-admin) privileges, keep Protected View / sandboxing enabled, and confirm EDR coverage includes process-lineage telemetry for office suites.
- Educate on the lure. Add
.dbfand unexpected database-file attachments to phishing awareness content — this exact attachment class is unusual enough that a well-timed user report can be your earliest indicator. - Monitor KEV status. CVE-2026-76181 is not in CISA KEV at time of writing. Subscribe to KEV feed changes; if added, federal remediation deadlines (typically 21 days for BOD 22-01-scoped agencies) apply, and private-sector SLAs should follow suit.
Related Resources
Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.