CVE-2024-5261: TLS certificate are not properly verified when utilizing LibreOfficeKit

Published Jun 25, 2024
·
Updated

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 (CURLOPTSSLVERIFYPEER of false) In the fixed versions curl operates in LibreOfficeKit mode the same as in standard mode with CURLOPTSSLVERIFYPEER of true. This issue affects LibreOffice before version 24.2.4.

Affected Software

5 affected componentsFixes available
ubuntu/libreoffice<4:7.6.7-0ubuntu0.23.10.3
4:7.6.7-0ubuntu0.23.10.3
ubuntu/libreoffice<4:24.2.4-0ubuntu0.24.04.2
4:24.2.4-0ubuntu0.24.04.2
ubuntu/libreoffice<4:24.2.4-1
4:24.2.4-1
debian/libreoffice
1:7.0.4-4+deb11u91:7.0.4-4+deb11u104:7.4.7-1+deb12u34:7.4.7-1+deb12u44:24.2.5-14:24.2.5-2
LibreOffice Libreoffice<24.2.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/libreoffice to a version that resolves this vulnerability.

    Fixed in 4:7.6.7-0ubuntu0.23.10.3
  2. Upgrade

    Upgrade ubuntu/libreoffice to a version that resolves this vulnerability.

    Fixed in 4:24.2.4-0ubuntu0.24.04.2
  3. Upgrade

    Upgrade ubuntu/libreoffice to a version that resolves this vulnerability.

    Fixed in 4:24.2.4-1
  4. Upgrade

    Upgrade debian/libreoffice to a version that resolves this vulnerability.

    Fixed in 1:7.0.4-4+deb11u9Fixed in 1:7.0.4-4+deb11u10Fixed in 4:7.4.7-1+deb12u3Fixed in 4:7.4.7-1+deb12u4Fixed in 4:24.2.5-1Fixed in 4:24.2.5-2
  5. Upgrade

    Upgrade LibreOffice to a version that resolves this vulnerability.

    Fixed in 24.2.4
  6. Configuration

    In LibreOfficeKit mode, ensure curl TLS certificate verification is enabled by setting/operating with CURLOPT_SSL_VERIFYPEER=true (previously affected behavior was CURLOPT_SSL_VERIFYPEER=false).

    LibreOfficeKit (curl usage) CURLOPT_SSL_VERIFYPEER = true

Event History

Jun 25, 2024
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·12:44 PM
Data Sourced
via MITRE·12:44 PM
DescriptionWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
Affected Software
Jul 4, 2024
Data Sourced
via Launchpad·03:17 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-5261?

CVE-2024-5261 has been classified as a high-severity vulnerability due to its potential impact on the confidentiality and integrity of data.

2

How do I fix CVE-2024-5261?

To address CVE-2024-5261, upgrade LibreOffice to a secure version, specifically to any of the remedied versions provided in the vendor advisory.

3

What systems are affected by CVE-2024-5261?

CVE-2024-5261 affects multiple LibreOffice versions on Ubuntu and Debian operating systems.

4

What is the nature of the vulnerability described in CVE-2024-5261?

CVE-2024-5261 is an improper certificate validation vulnerability that allows TLS certification verification to be disabled in LibreOfficeKit.

5

Are there workarounds for CVE-2024-5261?

No official workarounds are recommended for CVE-2024-5261; the best mitigation is to update to a patched version of LibreOffice.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203