# CVE-2022-26305: Execution of Untrusted Macros Due to Improper Certificate Validation

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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): 1.24%, higher than 70% of CVEs (2026-12-01)
- Published: 2022-07-25T00:00:00.000Z
- Modified: 2026-06-17T04:34:56.930Z
- Weaknesses: CWE-295
- 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.

(As written by CVE List.)

## Affected

- The Document Foundation LibreOffice: from 7.2 before 7.2.7; from 7.3 before 7.3.1
- libreoffice libreoffice: from 7.2.0 before 7.2.7; from 7.3.0 before 7.3.2

## References

- <https://www.libreoffice.org/about-us/security/advisories/cve-2022-26305> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html> (mailing-list)

## Sources

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

---

Page: https://cve.day/CVE-2022-26305 · Whole record: https://cve.day/CVE-2022-26305.json · Rebuilt by cve.day 2026-11-25T22:58:13.191Z
