Incomplete key setup weakens EDB Postgres temporary-file encryption
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| EnterpriseDB | EDB Postgres Extended Server | 15.0 to before 15.20; 16.0 to before 16.16; 17.0 to before 17.12; 18.0 to before 18.7 | 15.20, 16.16, 17.12, 18.7 | Patch available | CNA |
| EnterpriseDB | EDB Postgres Advanced Server | 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 | 15.20.0, 16.16.0, 17.12.0, 18.7.0 | Patch available | CNA |
- 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
- 2026-11-16 Threatist record created from CVE-2026-87027
- 2026-11-16 Alias added: GHSA-jq42-r65f-4jxp
References
Other 8
- https://www.enterprisedb.com/docs/pge/15/release_notes/rel_notes15.20/
- https://www.enterprisedb.com/docs/pge/16/release_notes/rel_notes16.16/
- https://www.enterprisedb.com/docs/pge/17/release_notes/rel_notes17.12/
- https://www.enterprisedb.com/docs/pge/18/release_notes/rel_notes18.7.0/
- https://www.enterprisedb.com/docs/epas/15/epas_rel_notes/epas15_20_0_rel_notes/
- https://www.enterprisedb.com/docs/epas/16/epas_rel_notes/epas16_16_0_rel_notes/
- https://www.enterprisedb.com/docs/epas/17/epas_rel_notes/epas17_12_rel_notes/
- https://www.enterprisedb.com/docs/epas/18/epas_rel_notes/epas18_7_rel_notes/
More EnterpriseDB vulnerabilities
- 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
Sources
- CVE-2026-87027 · CVE Program
- CVE-2026-87027 · NVD
- GHSA-jq42-r65f-4jxp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences