v12.sh·12 may 2026

The case of the 9 bit AES key

Image for the article: The case of the 9 bit AES key
Image via v12.sh

Several PDF implementations, including MuPDF and Foxit, generate insecure AES-256 keys from small state spaces or time-based randomness, making them vulnerable to brute-force attacks. MuPDF versions before 1.28.5 use a 48-bit linear congruential generator seeded with a timestamp, reducing the effective key space to just 9 bits. Foxit PDF Reader 2026.1.3.36551 derives keys from a hash of the current timestamp and uninitialized bytes, which are zero-filled. These vulnerabilities allow for passwordless decryption of protected PDFs. The issue stems from insecure random number generation, highlighting the importance of robust cryptographic practices in PDF encryption.