Incorrect trust validation of signature with ambiguous KeyInfo children
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass, Spoofing
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 2 fixed, 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-347 and CWE-295.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| The Document Foundation | LibreOffice | 7.2 to before 7.2.5 | 7.2.5 | Patch available | CNA |
- LibreOffice VendorThe Document Foundation Affected 7.2 to before 7.2.5 Fixed in 7.2.5 Patch available CNA
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:libreoffice:libreoffice:*:*:*:*:*:*:*:* | 7.2.0 to before 7.2.5 | Vulnerable | The Document Foundation |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
- cpe:2.3:a:libreoffice:libreoffice:*:*:*:*:*:*:*:* Versions 7.2.0 to before 7.2.5 Vulnerable ·The Document Foundation
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA LibreOffice (The Document Foundation) Fixed in 7.2.5
Red Hat 1 advisory
- RHSA-2022:7461 Released 2022-11-08 · Red Hat rating Moderatelibreoffice security update
- Red Hat CodeReady Linux Builder (v. 8) libreoffice-sdk-1:6.4.7.2-11.el8, libreoffice-sdk-doc-1:6.4.7.2-11.el8
- Red Hat Enterprise Linux AppStream (v. 8) autocorr-af-1:6.4.7.2-11.el8, autocorr-bg-1:6.4.7.2-11.el8, autocorr-ca-1:6.4.7.2-11.el8 +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat CodeReady Linux Builder (v. 8) | Fixed | RHSA-2022:7461 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:7461 |
Timeline
- 2026-10-02 Threatist record created from CVE-2021-25636
- 2026-10-03 Alias added: GHSA-3cgr-wxhv-h7xw
References
More The Document Foundation Libreoffice vulnerabilities
- TI-2019-07233 LibreLogo global-event script execution CVSS 3.1CRITICAL 9.8
- TI-2018-12068 Path traversal in [UNKNOWN] libreoffice CVSS 3.0CRITICAL 9.8
- TI-2018-07474 An information disclosure vulnerability occurs when LibreOffice 6.0.3 and Apache… CVSS 3.0HIGH 7.5
- TI-2019-07230 Code injection in Document Foundation LibreOffice CVSS 3.1CRITICAL 9.8
- TI-2018-05018 LibreOffice before 5.4.5 and 6.x before 6.0.1 allows remote attackers to read arbitrary… CVSS 3.0CRITICAL 9.8
- TI-2023-01118 Arbitrary file write in libreoffice CVSS 3.1MEDIUM 5.5
Sources
- CVE-2021-25636 · CVE Program
- CVE-2021-25636 · NVD
- FIRST EPSS
- GHSA-3cgr-wxhv-h7xw · GitHub Advisory Database · CC BY 4.0
- CVE-2021-25636 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences