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.
| Product | VRMF | Remediation/First Fix |
|---|---|---|
| EDB Postgres Extended Server | 15.x before 15.20 | Update to 15.20 or later |
| EDB Postgres Extended Server | 16.x before 16.16 | Update to 16.16 or later |
| EDB Postgres Extended Server | 17.x before 17.12 | Update to 17.12 or later |
| EDB Postgres Extended Server | 18.x before 18.7 | Update to 18.7 or later |
| EDB Postgres Advanced Server | 15.x before 15.20.0 | Update to 15.20.0 or later |
| EDB Postgres Advanced Server | 16.x before 16.16.0 | Update to 16.16.0 or later |
| EDB Postgres Advanced Server | 17.x before 17.12.0 | Update to 17.12.0 or later |
| EDB Postgres Advanced Server | 18.x before 18.7.0 | Update 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
- CVSS Calculator v4.0
- CWE-331 Insufficient Entropy
- CWE-467 Use of sizeof() on a Pointer Type
- Transparent Data Encryption
Related information
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.