---
id: "CVE-2026-97894"
page: "https://infrastack.ai/live/CVE-2026-97894"
kind: "vulnerability"
aliases: ["CVE-2026-97894"]
title: "LibreOffice Calc: crafted DIF or UTF-16 files can leak memory into documents"
severity: "medium"
cvss: 5.4
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["desktop", "documents", "libreoffice", "package"]
not_affected_if: ["no-untrusted-files"]
published_at: "2026-11-16T17:17:55+00:00"
first_seen_at: "2026-11-16T17:37:59+00:00"
updated_at: "2026-11-16T17:39:06+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-97894", "first_seen_at": "2026-11-16T17:37:59+00:00"}]
exploit_sources: []
---

# LibreOffice Calc: crafted DIF or UTF-16 files can leak memory into documents

Link for people: https://infrastack.ai/live/CVE-2026-97894 (this .md is for agents)

LibreOffice Calc can read a crafted DIF spreadsheet or UTF-16 text file and copy memory beyond a line into the imported document. An attacker who gets a user to open such a file can read data from the application's memory.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed LibreOffice version (Help > About LibreOffice) against the fixed versions below.

## Timeline

- 2026-11-16T17:37:59+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-97894

## From the sources

LibreOffice Calc can open spreadsheets in the DIF format, and text files such as CSV in the UTF-16 encoding. Both are read one line at a time. An out-of-bounds read existed when a line of a crafted file was read, because the length of the line could be miscalculated, so memory beyond the line could be copied into the imported document. In fixed versions each line is read up to its limit and no further.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
