CVE-2026-8358 Heap buffer overflow in spreadsheet tracked-changes import

Medium 5.4 Published Updated

Heap buffer overflow in LibreOffice Calc allows attackers to execute arbitrary code or cause denial of service via a crafted spreadsheet with duplicate change identifiers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-8358?

CVE-2026-8358 is a medium-severity memory corruption vulnerability in The Document Foundation LibreOffice, published on 15 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

LibreOffice Calc can import tracked changes from a spreadsheet document. A heap buffer overflow existed when a document reused the same change identifier for two different kinds of change. The importer then treated one change object as a different, larger type and wrote past the end of its allocation. In fixed versions records with a duplicate identifier are rejected.

Weakness: CWE-843, CWE-787

Which versions are affected by CVE-2026-8358?

How do I fix CVE-2026-8358?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-8358 being exploited?

There is no known exploitation of CVE-2026-8358 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-8358, GHSA-gpc5-jgqj-xp2q, UBUNTU-CVE-2026-8358.

Is CVE-2026-8358 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free