What’s Vulnerable › Vulnerabilities
CVE-2021-25636: Incorrect trust validation of signature with ambiguous KeyInfo children
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-02-24 · updated 2026-06-17
- Weakness: CWE-347
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.
Affected products
- Fedoraproject Fedora: 34
- The Document Foundation LibreOffice: from 7.2.0 before 7.2.5 — fixed in 7.2.5
How to fix
Upgrade to a fixed version: The Document Foundation LibreOffice 7.2.5. Check the vendor advisory for mitigations.
References
- https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NE6UIBCPZWRBWPSEGJOPNWPPT3CCMVH2/
- https://www.libreoffice.org/about-us/security/advisories/CVE-2021-25636/
- https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NE6UIBCPZWRBWPSEGJOPNWPPT3CCMVH2/
- https://www.libreoffice.org/about-us/security/advisories/CVE-2021-25636/
Get alerted when CVE-2021-25636 or the next vulnerability affects your stack