Read the docs

Incomplete key setup weakens EDB Postgres temporary-file encryption

Priority MEDIUM 40CWE-331Published · Updated

Key facts

Attack vector
Local
Privileges required
High
User interaction
None
Attack complexity
High
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

EDB Postgres Extended Server and EDB Postgres Advanced Server versions 15 through 18 with Transparent Data Encryption (TDE) enabled are affected. The key that encrypts temporary files is only partly initialized because sizeof() is applied to a pointer (CWE-467), so only 8 of its 32 bytes come from a secure random source, reducing its randomness from 256 bits to 64 bits. A local user with read access to the temporary-file directory can read these files only after a crash, since they are removed at the next server start, and permanent data files and WAL are not affected.

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

Description from the CNA

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.

Why it matters now

Fix Fixed EDB Postgres Extended Server (EnterpriseDB): 15.20, 16.16, 17.12 +1EDB Postgres Advanced Server (EnterpriseDB): 15.20.0, 16.16.0, 17.12.0 +1

SSVC decision points

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

Affected products

VendorProductAffected versionsFixed inStatusSource
EnterpriseDBEDB Postgres Extended Server15.0 to before 15.20; 16.0 to before 16.16; 17.0 to before 17.12; 18.0 to before 18.715.20, 16.16, 17.12, 18.7Patch availableCNA
EnterpriseDBEDB Postgres Advanced Server15.0 to before 15.20.0; 16.0 to before 16.16.0; 17.0 to before 17.12.0; 18.0 to before 18.7.015.20.0, 16.16.0, 17.12.0, 18.7.0Patch availableCNA
  • EDB Postgres Extended Server VendorEnterpriseDB Affected 15.0 to before 15.20; 16.0 to before 16.16; 17.0 to before 17.12; 18.0 to before 18.7 Fixed in 15.20, 16.16, 17.12, 18.7 Patch available CNA
  • EDB Postgres Advanced Server VendorEnterpriseDB Affected 15.0 to before 15.20.0; 16.0 to before 16.16.0; 17.0 to before 17.12.0; 18.0 to before 18.7.0 Fixed in 15.20.0, 16.16.0, 17.12.0, 18.7.0 Patch available CNA

Remediation

Upgrade EDB Postgres Extended Server to 15.20, 16.16, 17.12 or 18.7, and EDB Postgres Advanced Server to 15.20.0, 16.16.0, 17.12.0 or 18.7.0. Restart the server after upgrading.

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

  • Fix · CNA EDB Postgres Extended Server (EnterpriseDB) Fixed in 15.20, 16.16, 17.12, 18.7
  • Fix · CNA EDB Postgres Advanced Server (EnterpriseDB) Fixed in 15.20.0, 16.16.0, 17.12.0, 18.7.0

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-87027
  2. 2026-11-16 Alias added: GHSA-jq42-r65f-4jxp

References

  • TI-2023-21738 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1CRITICAL 9.8
  • TI-2026-37400 When applying replicated changes for a row that is missing one or more columns, pglogical… CVSS 4.0CRITICAL 9.0
  • TI-2026-37399 SQL injection in EnterpriseDB pglogical CVSS 4.0CRITICAL 9.0
  • TI-2023-21739 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1HIGH 8.8
  • TI-2026-63799 WarehousePG pg_file_write/pg_file_rename/pg_file_unlink/pg_logdir_ls privilege escalation CVSS 4.0HIGH 8.7
  • TI-2023-21740 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1HIGH 8.8
See all 24 →

Sources