CVE-2022-26305: Execution of Untrusted Macros Due to Improper Certificate Validation
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/libreofficeto a version that resolves this vulnerability.Fixed in 7.2.7.2-r0 - Upgrade
Upgrade
debian/libreofficeto a version that resolves this vulnerability.Fixed in 1:7.3.2~rc2-1 - Upgrade
Upgrade
debian/libreofficeto a version that resolves this vulnerability.Fixed in 4:7.4.7-1+deb12u14Fixed in 4:7.4.7-1+deb12u13Fixed in 4:25.2.3-2+deb13u6Fixed in 4:25.2.3-2+deb13u8Fixed in 4:26.8.2.2-2 - Upgrade
Upgrade
LibreOfficeto a version that resolves this vulnerability.Fixed in 7.2.7 - Upgrade
Upgrade
LibreOfficeto a version that resolves this vulnerability.Fixed in 7.3.1
Event History
Frequently Asked Questions
What is CVE-2022-26305?
CVE-2022-26305 is an Improper Certificate Validation vulnerability in LibreOffice.
How does CVE-2022-26305 impact LibreOffice?
CVE-2022-26305 allows an attacker to successfully pass off a malicious macro as being signed by a trusted author.
What is the severity of CVE-2022-26305?
CVE-2022-26305 has a severity rating of 7.5, which is considered high.
Which versions of LibreOffice are affected by CVE-2022-26305?
LibreOffice versions 7.2.0 to 7.2.7 and 7.3.0 to 7.3.2 are affected by CVE-2022-26305.
How can I fix CVE-2022-26305?
To fix CVE-2022-26305, it is recommended to update LibreOffice to a version that has the necessary security patches.