CVE-2026-87027 - EDB Postgres Extended Server and EDB Postgres Advanced Server TDE temporary-file key incompletely initialized

First Published: 2026/11/16

Last Updated: 2026/11/16

Summary

In EDB Postgres Extended Server and EDB Postgres Advanced Server versions 15 through 18 with Transparent Data Encryption (TDE) enabled, the key used to encrypt temporary files was incompletely initialized. The code applied sizeof() to a pointer to the key buffer rather than to the buffer itself, so only 8 of the intended 32 bytes were filled from a secure random source and the remaining 24 bytes kept whatever was already in memory. This reduces the guaranteed randomness of the temporary-file key from 256 bits to 64 bits. Exploiting this requires local read access to the server's temporary-file directory, and those files normally exist only while the server is running; they persist only after a crash and are removed at the next server start. Permanent data files and WAL are not affected.

Vulnerability details

CVE-ID: CVE-2026-87027

CVSS Base Score: 5.6 Medium

CVSS Temporal Score: Undefined

CVSS Environmental Score: Undefined

CVSS Vector: CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected products and versions

  • Affected Products: EDB Postgres Extended Server, EDB Postgres Advanced Server
  • Affected Versions: 15.x before 15.20, 16.x before 16.16, 17.x before 17.12, and 18.x before 18.7, with TDE enabled
  • Not Affected: Servers without TDE enabled; versions before 15, which do not include TDE

Remediation/fixes

Impacted users must upgrade to a fixed version and restart the server. Temporary files written after the restart use a fully random key. No re-encryption of existing data is needed, because relation files and WAL are encrypted with the data key, which is not affected.

ProductVRMFRemediation/First Fix
EDB Postgres Extended Server15.x before 15.20Update to 15.20 or later
EDB Postgres Extended Server16.x before 16.16Update to 16.16 or later
EDB Postgres Extended Server17.x before 17.12Update to 17.12 or later
EDB Postgres Extended Server18.x before 18.7Update to 18.7 or later
EDB Postgres Advanced Server15.x before 15.20.0Update to 15.20.0 or later
EDB Postgres Advanced Server16.x before 16.16.0Update to 16.16.0 or later
EDB Postgres Advanced Server17.x before 17.12.0Update to 17.12.0 or later
EDB Postgres Advanced Server18.x before 18.7.0Update to 18.7.0 or later

Mitigation

There is no configuration workaround. Until you can upgrade, reduce exposure by restricting operating system access to the data directory and to any locations listed in temp_tablespaces, so that only the database service account can read temporary files.

References

Acknowledgement

Source: Found by Mark Dilger of EDB during internal code review.

Change history

  • 2026/11/16: Original Copy Published

Disclaimer

This document is provided on an "as is" basis and does not imply any kind of guarantee or warranty, including the warranties of merchantability or fitness for a particular use. Your use of the information on the document is at your own risk. EDB reserves the right to change or update this document at any time. Customers are therefore recommended to always view the latest version of this document.


Could this page be better? Report a problem or suggest an addition!