CVE-2026-87027

TDE temporary-file encryption key incompletely initialized in EDB Postgres Extended Server and EDB Postgres Advanced Server

Published Nov 16, 2026 CVSS 4.0 · 5.6 Medium EPSS n/a KEV · Not listed
Description
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. The issue is fixed in EDB Postgres Extended Server 15.20, 16.16, 17.12 and 18.7 and EDB Postgres Advanced Server 15.20.0, 16.16.0, 17.12.0 and 18.7.0; the server must be restarted after upgrading.

Analysis

AI-generated

Technical impact

The vulnerability arises because the key used to encrypt temporary files in EnterpriseDB Postgres Extended Server and Advanced Server is only partially initialized. Instead of writing the full 32 bytes of random data, the code fills only the first 8 bytes, leaving the remaining 24 bytes unchanged and potentially containing predictable values. This reduces the effective key strength from 256 bits to 64 bits, making the encrypted temporary files substantially easier to reconstruct if an adversary can read them. The impact is thus a compromise of confidentiality for files written to the temporary directory while the server is running, but no effect on permanent data files or the WAL.

Affected Systems

Vulnerable versions include EnterpriseDB EDB Postgres Extended Server and Advanced Server 15, 16, 17, and 18 when Transparent Data Encryption is enabled. The flaw is fixed in Extended Server 15.20, 16.16, 17.12, and 18.7 as well as Advanced Server 15.20.0, 16.16.0, 17.12.0, and 18.7.0. Users of any earlier releases with TDE enabled are affected.

Risk and Exploitability

The CVSS base score of 5.6 indicates moderate severity. Exploitation requires local read access to the database's temporary-file directory, a condition that is typically limited to local system users or processes. The EPSS score is not available, and the vulnerability is not listed in CISA's KEV catalog. Given that temporary files are only created while the server is running and are deleted on reboot, the attack window is limited. Nonetheless, the weakened key randomness creates a clear opportunity for a local adversary to decode temporary files if they can read the directory.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to EDB Postgres Extended Server 15.20 or newer, or Advanced Server 15.20.0 or newer, as these releases fix the key initialization bug
  • Restart the database server after applying the upgrade so that the new configuration is loaded
  • If an immediate upgrade is not possible, restrict file system permissions on the temporary-file directory to limit local read access by unauthorized users

Generated by OpenCVE AI on November 16, 2026 at 20:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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. The issue is fixed in EDB Postgres Extended Server 15.20, 16.16, 17.12 and 18.7 and EDB Postgres Advanced Server 15.20.0, 16.16.0, 17.12.0 and 18.7.0; the server must be restarted after upgrading.
Title TDE temporary-file encryption key incompletely initialized in EDB Postgres Extended Server and EDB Postgres Advanced Server
Weaknesses CWE-331
CWE-467
References
Metrics cvssV4_0

{'score': 5.6, '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'}

Subscriptions

No data.

Weaknesses
  • CWE-331

    Insufficient Entropy

  • CWE-467

    Use of sizeof() on a Pointer Type

Sources

Status
PUBLISHED
Assigner
EDB
Published
Updated
Nov 16, 2026, 6:42 PM
Reserved
Sep 8, 2026, 6:04 PM
Status
Received
Published
Nov 16, 2026, 7:17 PM
Modified
Nov 16, 2026, 7:17 PM