{"id":"CVE-2026-87027","kind":"vulnerability","aliases":["CVE-2026-87027"],"related":[],"title":"EDB Postgres: temporary-file encryption key only partly random, with TDE on","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.","summary":"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.","severity":"medium","cvss":5.6,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["edb-postgres","postgres","self-hosted","tde","vendor"],"not_affected_if":["community-postgres","no-tde","permanent-data-only"],"how_to_check":"- Check the server version with `SHOW server_version;` and whether Transparent Data Encryption is enabled\n- 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`\n- EDB Postgres Advanced Server: `15.20.0`, `16.16.0`, `17.12.0`, `18.7.0`\n- Restart the server after upgrading","status":"open","published_at":"2026-11-16T19:17:53+00:00","first_seen_at":"2026-11-16T19:38:24+00:00","triaged_at":"2026-11-16T19:39:31+00:00","updated_at":"2026-11-16T19:39:31+00:00","category":"vendor","confidence":0.75,"triage":{"at":"2026-11-16T19:39:31Z","model":"claude-haiku-5-5","output":{"fix":"- EDB Postgres Extended Server: `15.20`, `16.16`, `17.12`, `18.7`\n- EDB Postgres Advanced Server: `15.20.0`, `16.16.0`, `17.12.0`, `18.7.0`\n- Restart the server after upgrading","reach":"local","title":"EDB Postgres: temporary-file encryption key only partly random, with TDE on","impact":"low","summary":"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.","audience":"businesses","category":"vendor","nicknames":[],"who_cares":["edb-postgres","postgres","tde","self-hosted"],"confidence":0.75,"fix_status":"available","needs_auth":"yes","worst_case":"Local attacker with file access weakens temporary-file encryption key","analyst_note":"","how_to_check":"- Check the server version with `SHOW server_version;` and whether Transparent Data Encryption is enabled\n- Confirm the product is EDB Postgres Extended or Advanced Server versions 15 through 18","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["no-tde","community-postgres","permanent-data-only"],"who_is_affected":"Only servers running EDB Postgres Extended or Advanced Server 15 to 18 with Transparent Data Encryption turned on are affected. The weakness is in temporary-file keys, which exist only while the server runs, so an attacker needs local read access to the server's temporary-file directory and must find files left after a crash. Permanent data files and WAL are not affected, and teams not using TDE or not running EDB builds can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000815,"input_tokens":4815,"output_tokens":666,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2026':14A,17A '-87027':15A,18A '15':81C '15.20':216C '15.20.0':226C '16.16':217C '16.16.0':227C '17.12':218C '17.12.0':228C '18':83C '18.7':220C '18.7.0':230C '24':56B,135C '256':66B,155C '32':43B,123C '64':68B,158C '8':41B,119C 'access':165C 'advanc':37B,78C,224C 'affect':206C 'alreadi':140C 'appli':102C 'bit':69B,156C,159C 'buffer':110C,115C 'byte':45B,57B,124C,136C 'code':101C 'content':61B 'crash':190C 'cut':62B 'cve':13A,16A 'data':30B,86C,200C 'directori':173C 'edb':1A,20B,33B,71C,76C,212C,222C 'edb-postgr':19B 'enabl':32B,89C 'encrypt':6A,31B,87C,94C 'exist':178C 'exploit':160C 'extend':35B,73C,214C 'file':5A,53B,96C,152C,172C,176C,201C 'fill':39B,126C 'fix':210C 'guarante':146C 'host':25B 'incomplet':98C 'initi':99C 'intend':122C 'issu':208C 'keep':58B 'kept':137C 'key':7A,44B,63B,91C,109C,153C 'local':163C 'memori':60B,142C 'must':233C 'next':196C 'normal':177C 'old':59B 'part':9A 'perman':199C 'persist':186C 'pointer':106C 'postgr':2A,21B,22B,34B,72C,77C,213C,223C 'random':10A,49B,64B,130C,147C 'rather':111C 'read':164C 'reduc':144C 'remain':55B,134C 'remov':193C 'requir':162C 'restart':235C 'run':184C 'secur':48B,129C 'self':24B 'self-host':23B 'server':38B,74C,79C,168C,182C,197C,215C,225C,232C 'sizeof':103C 'sourc':50B,131C 'start':198C 'tde':12A,26B,88C 'temporari':4A,52B,95C,151C,171C 'temporary-fil':3A,150C,170C 'transpar':29B,85C 'upgrad':237C 'use':92C 'vendor':27B 'version':80C 'wal':203C 'whatev':138C","nicknames":[],"mitigations":[],"who_affected":"Only servers running EDB Postgres Extended or Advanced Server 15 to 18 with Transparent Data Encryption turned on are affected. The weakness is in temporary-file keys, which exist only while the server runs, so an attacker needs local read access to the server's temporary-file directory and must find files left after a crash. Permanent data files and WAL are not affected, and teams not using TDE or not running EDB builds can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["edbpostgres","medium","postgres","selfhosted","tde","vendor"],"campaign_type":null,"search_a":"'-2026':14A,17A '-87027':15A,18A 'cve':13A,16A 'edb':1A 'encrypt':6A 'file':5A 'key':7A 'part':9A 'postgr':2A 'random':10A 'tde':12A 'temporari':4A 'temporary-fil':3A","search_b":"'24':56B '256':66B '32':43B '64':68B '8':41B 'advanc':37B 'bit':69B 'byte':45B,57B 'content':61B 'cut':62B 'data':30B 'edb':20B,33B 'edb-postgr':19B 'enabl':32B 'encrypt':31B 'extend':35B 'file':53B 'fill':39B 'host':25B 'keep':58B 'key':44B,63B 'memori':60B 'old':59B 'postgr':21B,22B,34B 'random':49B,64B 'remain':55B 'secur':48B 'self':24B 'self-host':23B 'server':38B 'sourc':50B 'tde':26B 'temporari':52B 'transpar':29B 'vendor':27B","search_c":"'15':81C '15.20':216C '15.20.0':226C '16.16':217C '16.16.0':227C '17.12':218C '17.12.0':228C '18':83C '18.7':220C '18.7.0':230C '24':135C '256':155C '32':123C '64':158C '8':119C 'access':165C 'advanc':78C,224C 'affect':206C 'alreadi':140C 'appli':102C 'bit':156C,159C 'buffer':110C,115C 'byte':124C,136C 'code':101C 'crash':190C 'data':86C,200C 'directori':173C 'edb':71C,76C,212C,222C 'enabl':89C 'encrypt':87C,94C 'exist':178C 'exploit':160C 'extend':73C,214C 'file':96C,152C,172C,176C,201C 'fill':126C 'fix':210C 'guarante':146C 'incomplet':98C 'initi':99C 'intend':122C 'issu':208C 'kept':137C 'key':91C,109C,153C 'local':163C 'memori':142C 'must':233C 'next':196C 'normal':177C 'perman':199C 'persist':186C 'pointer':106C 'postgr':72C,77C,213C,223C 'random':130C,147C 'rather':111C 'read':164C 'reduc':144C 'remain':134C 'remov':193C 'requir':162C 'restart':235C 'run':184C 'secur':129C 'server':74C,79C,168C,182C,197C,215C,225C,232C 'sizeof':103C 'sourc':131C 'start':198C 'tde':88C 'temporari':95C,151C,171C 'temporary-fil':150C,170C 'transpar':85C 'upgrad':237C 'use':92C 'version':80C 'wal':203C 'whatev':138C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T19:17:53+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"20be33e2-bf35-4d13-8fad-18bd2f3e3659","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-87027","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87027","severity":null,"published_at":"2026-11-16T19:17:53+00:00","modified_at":"2026-11-16T19:17:53+00:00","first_seen_at":"2026-11-16T19:38:24+00:00","fetched_at":"2026-11-16T19:38:24+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}