CVE-2022-26305
JSON

7.5high

Execution of Untrusted Macros Due to Improper Certificate Validation

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.24% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Document Fdn.

Description

An Improper Certificate Validation vulnerability in LibreOffice existed where determining if a macro was signed by a trusted author was done by only matching the serial number and issuer string of the used certificate with that of a trusted certificate. This is not sufficient to verify that the macro was actually signed with the certificate. An adversary could therefore create an arbitrary certificate with a serial number and an issuer string identical to a trusted certificate which LibreOffice would present as belonging to the trusted author, potentially leading to the user to execute arbitrary code contained in macros improperly trusted. This issue affects: The Document Foundation LibreOffice 7.2 versions prior to 7.2.7; 7.3 versions prior to 7.3.1.

Affected

Product or packageVersionsReported by
The Document Foundation LibreOfficefrom 7.2 before 7.2.7, from 7.3 before 7.3.1CVE List
libreoffice libreofficefrom 7.2.0 before 7.2.7, from 7.3.0 before 7.3.2NVD

Classification

What each source says

CVE List

An Improper Certificate Validation vulnerability in LibreOffice existed where determining if a macro was signed by a trusted author was done by only matching the serial number and issuer string of the used certificate with that of a trusted certificate. This is not sufficient to verify that the macro was actually signed with the certificate. An adversary could therefore create an arbitrary certificate with a serial number and an issuer string identical to a trusted certificate which LibreOffice would present as belonging to the trusted author, potentially leading to the user to execute arbitrary code contained in macros improperly trusted. This issue affects: The Document Foundation LibreOffice 7.2 versions prior to 7.2.7; 7.3 versions prior to 7.3.1.

NVD (es)

Una vulnerabilidad de Comprobación Inapropiada de Certificados en LibreOffice en la que la determinación de si una macro estaba firmada por un autor confiable al comparar únicamente el número de serie y la cadena del emisor del certificado usado con los de un certificado confiable. Esto no es suficiente para verificar que la macro fue realmente firmada con el certificado. Por lo tanto, un adversario podría crear un certificado arbitrario con un número de serie y una cadena de emisor idénticos a los de un certificado confiable, que LibreOffice presentaría como pertenecientes al autor confiable, lo que podría conllevar que el usuario ejecutara código arbitrario contenido en macros no debidamente confiables. Este problema afecta a: The Document Foundation LibreOffice versiones 7.2 anteriores a 7.2.7; versiones 7.3 anteriores a 7.3.1

References

Sources

SourceRecordLicence
CVE ListCVE-2022-26305 changed 2024-08-03CVE Terms of Use
NVDCVE-2022-26305 changed 2026-06-17Public domain