# CVE-2021-25636: Incorrect trust validation of signature with ambiguous KeyInfo children

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 60% of CVEs (2026-11-30)
- Published: 2022-02-22T00:00:00.000Z
- Modified: 2026-06-17T03:42:15.550Z
- Weaknesses: CWE-295, CWE-347
- Assigned by: Document Fdn.

## 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.

(As written by CVE List.)

## Affected

- The Document Foundation LibreOffice: from 7.2 before 7.2.5
- libreoffice libreoffice: from 7.2.0 before 7.2.5
- fedoraproject fedora: 34

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://www.libreoffice.org/about-us/security/advisories/CVE-2021-25636/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NE6UIBCPZWRBWPSEGJOPNWPPT3CCMVH2/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html> (mailing-list)

## Sources

- CVE List: [CVE-2021-25636](https://www.cve.org/CVERecord?id=CVE-2021-25636), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-25636](https://nvd.nist.gov/vuln/detail/CVE-2021-25636), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25636 · Whole record: https://cve.day/CVE-2021-25636.json · Rebuilt by cve.day 2026-11-25T22:58:07.056Z
