CVE-2022-26305 json
Execution of Untrusted Macros Due to Improper Certificate Validation
published 2022-07-25 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-30866
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- The Document Foundation LibreOffice 7.2.7, 7.3.1
- libreoffice Debian 14, Debian 13, Debian 12 1:7.3.2~rc2-1
debian advisories DEBIAN-CVE-2022-26305
- libreoffice Ubuntu 18.04 LTS 1:6.0.7-0ubuntu0.18.04.12
- libreoffice Ubuntu 20.04 LTS 1:6.4.7-0ubuntu0.20.04.5
ubuntu advisories UBUNTU-CVE-2022-26305
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libreoffice RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-af RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-bg RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-ca RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-cs RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-da RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-de RHEL 9 1:7.1.8.1-8.el9_1
- autocorr-el RHEL 9 1:7.1.8.1-8.el9_1
red hat advisories RHSA-2023:0304RHSA-2023:0089
- libreoffice SLE Workstation Extension 15 SP4, SLE Workstation Extension 15 SP3, SLE Module for Package Hub 15 SP4 +3 more 7.3.6.2-150300.14.22.24.2
- libreoffice SLE Workstation Extension 12 SP5, SLE Software Development Kit 12 SP5 7.3.6.2-48.28.1
suse advisories SUSE-SU-2022:3650-1SUSE-SU-2022:3602-1
- libreoffice openSUSE Tumbleweed 7.4.2.3-1.1
opensuse advisories openSUSE-SU-2024:12452-1
- autocorr-af AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-bg AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-ca AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-cs AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-da AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-de AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-el AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
- autocorr-en AlmaLinux 9 1:7.1.8.1-8.el9_1.alma
almalinux advisories ALSA-2023:0304ALSA-2023:0089
- libreoffice Rocky Linux 9 1:7.1.8.1-8.el9_1
- libreoffice Rocky Linux 8 1:6.4.7.2-12.el8_7
rocky linux advisories RLSA-2023:0304RLSA-2023:0089
- libreoffice Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 7.2.7.2-r0
alpine advisories ALPINE-CVE-2022-26305
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-26305 updated cvss 7.1
libreoffice: Execution of Untrusted Macros Due to Improper Certificate Validation
-
Red Hat Enterprise Linux 8 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +98 moreaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 9 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +101 moreaffected: no fix available
-
Red Hat CodeReady Linux Builder (v. 8) libreoffice-sdk 6.4.7.2-12.el8_7fixed: vendor fix RHSA-2023:0089
-
Red Hat CodeReady Linux Builder (v. 9) libreoffice-sdk 7.1.8.1-8.el9_1fixed: vendor fix RHSA-2023:0304
-
Red Hat Enterprise Linux AppStream (v. 8) autocorr-af 6.4.7.2-12.el8_7, autocorr-bg 6.4.7.2-12.el8_7, autocorr-ca 6.4.7.2-12.el8_7, autocorr-cs 6.4.7.2-12.el8_7, autocorr-da 6.4.7.2-12.el8_7, autocorr-de 6.4.7.2-12.el8_7, +95 morefixed: vendor fix RHSA-2023:0089
-
Red Hat Enterprise Linux AppStream (v. 9) autocorr-af 7.1.8.1-8.el9_1, autocorr-bg 7.1.8.1-8.el9_1, autocorr-ca 7.1.8.1-8.el9_1, autocorr-cs 7.1.8.1-8.el9_1, autocorr-da 7.1.8.1-8.el9_1, autocorr-de 7.1.8.1-8.el9_1, +100 morefixed: vendor fix RHSA-2023:0304
-
Red Hat Enterprise Linux 6 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +60 more Red Hat Enterprise Linux 7 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +105 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.24% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected products
- The Document Foundation LibreOffice
Classification
- Weakness
-
- CWE-295 Improper Certificate Validation
References
-
libreoffice.org
/about-us/security/advisories/cve-2022-26305
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2023/03/msg00022.html
mailing-list
Sources
- CVE List CVE-2022-26305
- NVD CVE-2022-26305
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.