Read the docs

Weak random numbers used for LibreOffice PDF encryption keys

Priority MEDIUM 46CWE-338Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

LibreOffice from 26.2 before 26.2.6 exports password-protected PDF 2.0 files encrypted with 256-bit AES. The file encryption key and salts are drawn from a pseudorandom number generator that is not suitable for cryptography (CWE-338). An attacker can recover the encryption key of an exported PDF without knowing the password.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

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.

Why it matters now

Fix Fixed LibreOffice (The Document Foundation): < 26.2.6

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
The Document FoundationLibreOffice26.2 to before < 26.2.6< 26.2.6Patch availableCNA

Remediation

Update LibreOffice to version 26.2.6 or later, where the key and salts are drawn from the operating system random source.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA LibreOffice (The Document Foundation) Fixed in < 26.2.6

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    The Document Foundation LibreOffice < 26.2.6

    2 records Highest priority Priority MEDIUM 2 MEDIUM

    Other records, highest priority first

    • TI-2026-92204 Out-of-bounds reads in LibreOffice EMF, EMF+ and WMF image importPriority MEDIUM 40

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-18564
  2. 2026-11-16 Alias added: GHSA-h5g2-rhc6-4wmp

References

  • TI-2019-07233 LibreLogo global-event script execution CVSS 3.1CRITICAL 9.8
  • TI-2018-12068 Path traversal in [UNKNOWN] libreoffice CVSS 3.0CRITICAL 9.8
  • TI-2018-07474 An information disclosure vulnerability occurs when LibreOffice 6.0.3 and Apache… CVSS 3.0HIGH 7.5
  • TI-2019-07230 Code injection in Document Foundation LibreOffice CVSS 3.1CRITICAL 9.8
  • TI-2018-05018 LibreOffice before 5.4.5 and 6.x before 6.0.1 allows remote attackers to read arbitrary… CVSS 3.0CRITICAL 9.8
  • TI-2023-01118 Arbitrary file write in libreoffice CVSS 3.1MEDIUM 5.5
See all 117 →

Sources