---
id: "CVE-2026-87027"
page: "https://infrastack.ai/live/CVE-2026-87027"
kind: "vulnerability"
aliases: ["CVE-2026-87027"]
title: "EDB Postgres: temporary-file encryption key only partly random, with TDE on"
severity: "medium"
cvss: 5.6
epss: null
exploited: false
status: "open"
category: "vendor"
products: []
ecosystems: []
tags: ["edb-postgres", "postgres", "self-hosted", "tde", "vendor"]
not_affected_if: ["community-postgres", "no-tde", "permanent-data-only"]
published_at: "2026-11-16T19:17:53+00:00"
first_seen_at: "2026-11-16T19:38:24+00:00"
updated_at: "2026-11-16T19:39:31+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-87027", "first_seen_at": "2026-11-16T19:38:24+00:00"}]
exploit_sources: []
---

# EDB Postgres: temporary-file encryption key only partly random, with TDE on

Link for people: https://infrastack.ai/live/CVE-2026-87027 (this .md is for agents)

With Transparent Data Encryption enabled, EDB Postgres Extended and Advanced Server fill only 8 of 32 key bytes from a secure random source for temporary files. The remaining 24 bytes keep old memory contents, cutting key randomness from 256 to 64 bits.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the server version with `SHOW server_version;` and whether Transparent Data Encryption is enabled
- Confirm the product is EDB Postgres Extended or Advanced Server versions 15 through 18

## Fix

- EDB Postgres Extended Server: `15.20`, `16.16`, `17.12`, `18.7`
- EDB Postgres Advanced Server: `15.20.0`, `16.16.0`, `17.12.0`, `18.7.0`
- Restart the server after upgrading

## Timeline

- 2026-11-16T19:38:24+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-87027

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
