CVE-2026-18564: Weak random numbers used for PDF 2.0 encryption keys
LibreOffice can export documents to PDF protected by a password. With the PDF 2.0 option the file is encrypted with 256-bit AES, using a file encryption key and salts that are meant to be random. The key and the salts were drawn from a pseudo-random number generator that is not suitable for cryptography, so the encryption key of an exported PDF could be recovered without knowing the password. In fixed versions the key and the salts are drawn from the random source of the operating system.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Organizations and users that exported password-protected PDFs using the PDF 2.0 option in LibreOffice are exposed. Other PDF export modes are not identified in the available information.
Does an attacker need the PDF password to recover the encryption key?
No. The affected pseudo-random generator could allow recovery of the exported PDF's encryption key without knowing the password.
What is the remediation?
Use a fixed LibreOffice version. Fixed versions obtain the PDF encryption key and salts from the operating system's random source rather than a pseudo-random generator unsuitable for cryptographic use.