LibreOffice's PDF export feature using the PDF 2.0 option encrypts files with 256-bit AES. However, the encryption key and salts were generated using a pseudo-random number generator unsuitable for cryptographic purposes, allowing recovery of the encryption key without the password. This vulnerability affects the confidentiality of password-protected PDFs exported by LibreOffice. Fixed versions use the operating system's random source for key and salt generation.