Cloudanix VulnDB

CVE-2024-5261

None

CVSS

—

EPSS

0.4%

Published

Jun 25, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

When LibreOffice is used as a programming library, it may skip security checks on encrypted web connections, letting attackers secretly alter or read the files being processed.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Cryptographic Weakness
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Disables TLS certificate verification (CURLOPT_SSL_VERIFYPEER=false) in curl when LibreOfficeKit mode is active, allowing unsigned or forged certificates for remote resource fetches.

Why it matters to the business

Attackers can intercept or alter documents and images fetched during conversion or viewing workflows, risking data exposure or malware insertion in document processing pipelines used by third-party applications.

How an attack unfolds

An attacker performs a man-in-the-middle attack on network traffic between LibreOfficeKit and a remote server hosting images or other resources; because certificate validation is disabled, the client accepts the attacker's certificate and retrieves attacker-controlled content that is then incorporated into the processed document.

How to fix it

Upgrade LibreOffice to version 24.2.4 or later on all affected systems; after upgrade, confirm LibreOfficeKit uses the same TLS verification behavior as standard mode.

How to confirm the fix worked

Verify installed LibreOffice version is 24.2.4 or newer; test by attempting to fetch a remote resource served with an invalid certificate and confirm the connection is rejected.

Typical attack path

  1. Position as network MITM between the host and remote resource server
  2. Present a forged or invalid TLS certificate for the requested domain
  3. LibreOfficeKit initiates curl request with verification disabled
  4. Malicious or altered content is fetched and embedded into the document
  5. Resulting document is delivered to the end user or downstream system

How to detect it

Review application and system logs for curl requests initiated from LibreOfficeKit processes; look for remote resource fetches that complete without certificate validation errors on hosts running vulnerable versions.

What your security team should do

  • Prioritize upgrade to LibreOffice 24.2.4 or later across all deployments using LibreOfficeKit
  • Audit third-party applications that embed LibreOfficeKit for document conversion or viewing
  • Monitor network traffic for unexpected certificate validation failures or unusual remote fetches from document-processing hosts

The record

Improper Certificate Validation vulnerability in LibreOffice "LibreOfficeKit" mode disables TLS certification verification LibreOfficeKit can be used for accessing LibreOffice functionality through C/C++. Typically this is used by third party components to reuse LibreOffice as a library to convert, view or otherwise interact with documents. LibreOffice internally makes use of "curl" to fetch remote resources such as images hosted on webservers. In affected versions of LibreOffice, when used in LibreOfficeKit mode only, then curl's TLS certification verification was disabled (CURLOPT_SSL_VERIFYPEER of false) In the fixed versions curl operates in LibreOfficeKit mode the same as in standard mode with CURLOPT_SSL_VERIFYPEER of true. This issue affects LibreOffice before version 24.2.4.

Affected packages

Ecosystem Package Introduced Fixed
Debian:13 libreoffice 0 4:24.2.4-1
Mageia:9 libreoffice 0 7.6.7.2-1.1.mga9
SUSE:Linux Enterprise Module for Package Hub 15 SP5 libreoffice 0 24.8.1.2-150500.20.11.2
SUSE:Linux Enterprise Module for Package Hub 15 SP6 libreoffice 0 24.8.1.2-150500.20.11.2
SUSE:Linux Enterprise Software Development Kit 12 SP5 libreoffice 0 24.8.1.2-48.64.2
SUSE:Linux Enterprise Workstation Extension 12 SP5 libreoffice 0 24.8.1.2-48.64.2
SUSE:Linux Enterprise Workstation Extension 15 SP5 libreoffice 0 24.8.1.2-150500.20.11.2
SUSE:Linux Enterprise Workstation Extension 15 SP6 libreoffice 0 24.8.1.2-150500.20.11.2
Ubuntu:23.10 libreoffice 0 4:7.6.7-0ubuntu0.23.10.3
Ubuntu:24.04:LTS libreoffice 0 4:24.2.4-0ubuntu0.24.04.2
openSUSE:Leap 15.5 libreoffice 0 24.8.1.2-150500.20.11.2
openSUSE:Leap 15.6 libreoffice 0 24.8.1.2-150500.20.11.2
openSUSE:Tumbleweed libreoffice 0 24.2.5.2-1.1

Related vulnerabilities