Vulnerabilities/CVE-2021-25636, published 24 February 2022

CVE-2021-25636: Libreoffice improper verification of cryptographic signature vulnerability

Libreoffice, Libreoffice

LibreOffice supports digital signatures of ODF documents and macros within documents, presenting visual aids that no alteration of the document occurred since the last signing and that the signature is valid. An Improper Certificate Validation vulnerability in LibreOffice allowed an attacker to create a digitally signed ODF document, by manipulating the documentsignatures.xml or macrosignatures.xml stream within the document to contain both "X509Data" and "KeyValue" children of the "KeyInfo" tag, which when opened caused LibreOffice to verify using the "KeyValue" but to report verification with the unrelated "X509Data" value. This issue affects: The Document Foundation LibreOffice 7.2 versions prior to 7.2.5.

  • 7.5 CVSS 3.1 High
  • EPSS 0.95%, top 37.5%
  • CWE-347, Improper verification of cryptographic signature
  • CWE-295, Improper certificate validation

Description

LibreOffice supports digital signatures of ODF documents and macros within documents, presenting visual aids that no alteration of the document occurred since the last signing and that the signature is valid. An Improper Certificate Validation vulnerability in LibreOffice allowed an attacker to create a digitally signed ODF document, by manipulating the documentsignatures.xml or macrosignatures.xml stream within the document to contain both "X509Data" and "KeyValue" children of the "KeyInfo" tag, which when opened caused LibreOffice to verify using the "KeyValue" but to report verification with the unrelated "X509Data" value. This issue affects: The Document Foundation LibreOffice 7.2 versions prior to 7.2.5.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2024-5261Libreoffice improper certificate validation vulnerabilityImproper Certificate Validation vulnerability in LibreOffice "LibreOfficeKit" mode disables TLS certification verification LibreOfficeKit can be used…EPSS 0.43%10.0CVE-2014-0247Fedoraproject fedora vulnerabilityLibreOffice 4.2.4 executes unspecified VBA macros automatically, which has unspecified impact and attack vectors, possibly related to doc/docmacromod…EPSS 3.9%10.0CVE-2009-0846Mit kerberos 5 vulnerabilityThe asn1_decode_generaltime function in lib/krb5/asn.1/asn1_decode.c in the ASN.1 GeneralizedTime decoder in MIT Kerberos 5 (aka krb5) before 1.6.4 a…EPSS 8.9%9.8CVE-2019-9855Libreoffice vulnerabilityLibreOffice is typically bundled with LibreLogo, a programmable turtle vector graphics script, which can execute arbitrary python commands contained …EPSS 3.0%9.8CVE-2019-9850Canonical ubuntu linux improper input validation vulnerabilityLibreOffice is typically bundled with LibreLogo, a programmable turtle vector graphics script, which can execute arbitrary python commands contained …EPSS 2.9%9.8CVE-2019-9851LibreOffice LibreLogo global script event validation bypass allows Python executionLibreOffice bundles LibreLogo, a programmable turtle graphics script that can execute arbitrary Python commands embedded in a document. A prior fix f…EPSS 78%analysed9.8CVE-2019-9848Libreoffice code injection vulnerabilityLibreOffice has a feature where documents can specify that pre-installed scripts can be executed on various document events such as mouse-over, etc. …EPSS 29%9.8CVE-2018-16858LibreOffice directory traversal enables macro code executionLibreOffice before 6.0.7 and 6.1.3 is vulnerable to a directory traversal flaw that lets a crafted document execute arbitrary macros bundled with it.…EPSS 67%analysed

Source: NIST National Vulnerability Database (record CVE-2021-25636), CISA KEV, FIRST EPSS (scores of 2026-12-03). This page is refreshed as NVD updates the record.