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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-07-25 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2022-26305, DEBIAN-CVE-2022-26305, ALPINE-CVE-2022-26305
- Record: https://cvemate.com/vulnerability/CVE-2022-26305 · JSON: https://cvemate.com/vulnerability/CVE-2022-26305/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.241%, percentile 70.159%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libreoffice (Alpine Linux): ≥ 7.2.0, \< 7.2.7.2-r0
- debian libreoffice (Debian): \< 1:7.3.2~rc2-1
- ubuntu libreoffice (Ubuntu): \< 1:6.0.7-0ubuntu0.18.04.12 \| \< 1:6.4.7-0ubuntu0.20.04.5
- libreoffice libreoffice: ≥ 7.2.0, \< 7.2.7 \| ≥ 7.3.0, \< 7.3.2
- the document foundation libreoffice: ≥ 7.2, \< 7.2.7 \| ≥ 7.3, \< 7.3.1

## References

- <https://www.libreoffice.org/about-us/security/advisories/cve-2022-26305>
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00022.html>
- <https://ubuntu.com/security/CVE-2022-26305>
- <https://ubuntu.com/security/notices/USN-5661-1>
- <https://ubuntu.com/security/notices/USN-5694-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-26305>
- <https://security-tracker.debian.org/tracker/CVE-2022-26305>
- <https://security.alpinelinux.org/vuln/CVE-2022-26305>

---

Data as of 2026-12-05T04:55:41.339Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
