Bug 1226975 (CVE-2024-5261)

Summary: VUL-0: CVE-2024-5261: libreoffice: TLS certificates are not properly verified when utilizing LibreOfficeKit
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Martin Schreiner <martin.schreiner>
Status: IN_PROGRESS --- QA Contact: Security Team bot <security-team>
Severity: Major    
Priority: P3 - Medium CC: camila.matos, martin.schreiner, stoyan.manolov
Version: unspecifiedFlags: stoyan.manolov: needinfo? (martin.schreiner)
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/412060/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-5261:8.1:(AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-06-25 18:52:03 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-5261
https://www.cve.org/CVERecord?id=CVE-2024-5261
https://www.libreoffice.org/about-us/security/advisories/cve-2024-5261
Comment 2 Martin Schreiner 2024-06-27 20:41:30 UTC
I'm on it.