CVE-2026-87027
TDE temporary-file encryption key incompletely initialized in EDB Postgres Extended Server and EDB Postgres Advanced Server
Mitigation
- Upgrade EDB Postgres Extended Server to 18.7 or later.
- Upgrade EDB Postgres Advanced Server to 18.7.0 or later.
Who should check
- Anyone running EnterpriseDB EDB Postgres Extended Server >= 15.0, < 15.20; >= 16.0, < 16.16; >= 17.0, < 17.12; >= 18.0, < 18.7
- Anyone running EnterpriseDB EDB Postgres Advanced Server >= 15.0, < 15.20.0; >= 16.0, < 16.16.0; >= 17.0, < 17.12.0; >= 18.0, < 18.7.0
Vulnerability facts
- Affected
- EnterpriseDB EDB Postgres Extended Server >= 15.0, < 15.20; >= 16.0, < 16.16; >= 17.0, < 17.12; >= 18.0, < 18.7; EnterpriseDB EDB Postgres Advanced Server >= 15.0, < 15.20.0; >= 16.0, < 16.16.0; >= 17.0, < 17.12.0; >= 18.0, < 18.7.0
- Fixed in
- EnterpriseDB EDB Postgres Extended Server 15.20, EnterpriseDB EDB Postgres Extended Server 16.16, EnterpriseDB EDB Postgres Extended Server 17.12, EnterpriseDB EDB Postgres Extended Server 18.7, EnterpriseDB EDB Postgres Advanced Server 15.20.0, EnterpriseDB EDB Postgres Advanced Server 16.16.0, EnterpriseDB EDB Postgres Advanced Server 17.12.0, EnterpriseDB EDB Postgres Advanced Server 18.7.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.6 (v4.0, CNA)CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Attack requirements: Present
- Privileges required: High
- User interaction: None
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.14% chance of exploitation in 30 days (percentile 1, 2026-11-28)
- CWE
- CWE-331, CWE-467
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| EnterpriseDB EDB Postgres Extended Server | >= 15.0, < 15.20; >= 16.0, < 16.16; >= 17.0, < 17.12; >= 18.0, < 18.7 | — | cvelist |
| EnterpriseDB EDB Postgres Advanced Server | >= 15.0, < 15.20.0; >= 16.0, < 16.16.0; >= 17.0, < 17.12.0; >= 18.0, < 18.7.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-87027. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-87027.md Affected: EnterpriseDB EDB Postgres Extended Server >= 15.0, < 15.20; >= 16.0, < 16.16; >= 17.0, < 17.12; >= 18.0, < 18.7; EnterpriseDB EDB Postgres Advanced Server >= 15.0, < 15.20.0; >= 16.0, < 16.16.0; >= 17.0, < 17.12.0; >= 18.0, < 18.7.0 Fixed in: EnterpriseDB EDB Postgres Extended Server 15.20, EnterpriseDB EDB Postgres Extended Server 16.16, EnterpriseDB EDB Postgres Extended Server 17.12, EnterpriseDB EDB Postgres Extended Server 18.7, EnterpriseDB EDB Postgres Advanced Server 15.20.0, EnterpriseDB EDB Postgres Advanced Server 16.16.0, En… Steps: 1. Search this machine and project for EnterpriseDB EDB Postgres Extended Server, EnterpriseDB EDB Postgres Advanced Server: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- 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/
FAQ
Is CVE-2026-87027 being exploited?
There is no confirmed exploitation: CVE-2026-87027 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-87027?
Medium: CVSS 5.6 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-87027?
EnterpriseDB EDB Postgres Extended Server >= 15.0, < 15.20; >= 16.0, < 16.16; >= 17.0, < 17.12; >= 18.0, < 18.7; EnterpriseDB EDB Postgres Advanced Server >= 15.0, < 15.20.0; >= 16.0, < 16.16.0; >= 17.0, < 17.12.0; >= 18.0, < 18.7.0.
Is there a fix for CVE-2026-87027?
Yes. Fixed in EnterpriseDB EDB Postgres Extended Server 15.20, EnterpriseDB EDB Postgres Extended Server 16.16, EnterpriseDB EDB Postgres Extended Server 17.12, EnterpriseDB EDB Postgres Extended Server 18.7, EnterpriseDB EDB Postgres Advanced Server 15.20.0, EnterpriseDB EDB Postgres Advanced Server 16.16.0, EnterpriseDB EDB Postgres Advanced Server 17.12.0, EnterpriseDB EDB Postgres Advanced Server 18.7.0. Upgrade EDB Postgres Extended Server to 18.7 or later. Upgrade EDB Postgres Advanced Server to 18.7.0 or later.
How do I check if I'm affected by CVE-2026-87027?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More enterprisedb vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 5.3 | CVE-2026-62157 mongo_fdw out-of-bounds read when building an ObjectId from short _id values | EnterpriseDB | EPSS 44% | |
| MEDIUM 6.5 | CVE-2026-62156 hdfs_fdw HiveQL injection through pushed-down IN and = ANY(array) string literals | EnterpriseDB | EPSS 27% | |
| MEDIUM 5.3 | CVE-2026-62155 mongo_fdw connection URI injection through unencoded option values | EnterpriseDB | EPSS 44% | |
| HIGH 7.5 | CVE-2026-62154 mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA | EnterpriseDB | EPSS 50% | |
| MEDIUM 6.4 | CVE-2026-62153 mysql_fdw SQL injection through ANALYZE, IMPORT FOREIGN SCHEMA and the sql_mode option | EnterpriseDB | EPSS 48% |