CVE-2026-6040 Affecting libreoffice package, versions <4:24.2.7-0ubuntu0.24.04.6


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-UBUNTU2404-LIBREOFFICE-17340495
  • published14 Jul 2026
  • disclosed15 Jun 2026

Introduced: 15 Jun 2026

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

How to fix?

Upgrade Ubuntu:24.04 libreoffice to version 4:24.2.7-0ubuntu0.24.04.6 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:24.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