CVE-2026-6040 Affecting libreoffice package, versions <4:26.2.4.2-0ubuntu0.26.04.2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.11% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2604-LIBREOFFICE-17340497
  • published14 Jul 2026
  • disclosed15 Jun 2026

Introduced: 15 Jun 2026

CVE-2026-6040  (opens in a new tab)

How to fix?

Upgrade Ubuntu:26.04 libreoffice to version 4:26.2.4.2-0ubuntu0.26.04.2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libreoffice package and not the libreoffice package as distributed by Ubuntu. See How to fix? for Ubuntu:26.04 relevant fixed versions and status.

A heap use-after-free existed when importing the blank-width characters of an ODF number format. A position value read from the document was not checked against the length of the format-code string, so a malformed number format could be processed against memory outside that string. In fixed versions the position is bounds-checked before use.

CVSS Base Scores

version 3.1