CVE-2025-2866 PDF signature forgery with adbe.pkcs7.sha1 SubFilter

Low 2.4 Published Updated

Attackers can forge PDF signatures in LibreOffice by exploiting improper validation of adbe.pkcs7.sha1 signatures, bypassing integrity checks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-2866?

CVE-2025-2866 is a low-severity vulnerability in Libreoffice Libreoffice, published on 27 Apr 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Improper Verification of Cryptographic Signature vulnerability in LibreOffice allows PDF Signature Spoofing by Improper Validation.

In the affected versions of LibreOffice a flaw in the verification code for adbe.pkcs7.sha1 signatures could cause invalid signatures to be accepted as valid

This issue affects LibreOffice: from 24.8 before < 24.8.6, from 25.2 before < 25.2.2.

Weakness: CWE-347

Which versions are affected by CVE-2025-2866?

It affects 1 product.

Products include Libreoffice Libreoffice.

How do I fix CVE-2025-2866?

Upgrade to a fixed version.

Is CVE-2025-2866 being exploited?

There is no known exploitation of CVE-2025-2866 in the wild and no public exploit code.

All Libreoffice Libreoffice vulnerabilities

Sources

Also known as BELL-CVE-2025-2866, DEBIAN-CVE-2025-2866, DSA-5908-1, GHSA-22mj-r7hq-f9h2, MGASA-2025-0154, UBUNTU-CVE-2025-2866 and 1 more.

Is CVE-2025-2866 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free