{"id":"CVE-2026-116310","kind":"vulnerability","aliases":["CVE-2026-116310"],"related":[],"title":"PostgreSQL: COPY FROM error reporting leaks server memory to database users","description":"Use after free in PostgreSQL COPY FROM error reporting allows a database user to disclose portions of server memory, via a longer input row following an ignored or nullified conversion error.  file_fdw reaches the same code path in affected version 18.  Within major versions 17-18, minor versions before PostgreSQL 18.7 and 17.12 are affected.  Versions before PostgreSQL 17 are unaffected.","summary":"A use-after-free in PostgreSQL's COPY FROM error reporting lets a database user read portions of server memory when a longer input row follows an ignored or nullified conversion error. file_fdw reaches the same code path in version 18.","severity":"medium","cvss":4.3,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["database","postgresql","runtime","self-hosted"],"not_affected_if":["patched-minor-version","postgresql-16-or-earlier"],"how_to_check":"- Run `SELECT version();` in psql and check whether the server is PostgreSQL 17 or 18 below the fixed minor versions.\n- Check whether the file_fdw extension is installed on PostgreSQL 18 servers.","fix":"- PostgreSQL 18: move to `18.7` or later.\n- PostgreSQL 17: move to `17.12` or later.","status":"open","published_at":"2026-11-12T15:17:38+00:00","first_seen_at":"2026-11-12T15:41:54+00:00","triaged_at":"2026-11-12T15:44:02+00:00","updated_at":"2026-11-12T15:44:02+00:00","category":"runtime","confidence":0.7,"triage":{"at":"2026-11-12T15:44:02Z","model":"claude-haiku-5-5","output":{"fix":"- PostgreSQL 18: move to `18.7` or later.\n- PostgreSQL 17: move to `17.12` or later.","reach":"local","title":"PostgreSQL: COPY FROM error reporting leaks server memory to database users","impact":"low","summary":"A use-after-free in PostgreSQL's COPY FROM error reporting lets a database user read portions of server memory when a longer input row follows an ignored or nullified conversion error. file_fdw reaches the same code path in version 18.","audience":"businesses","category":"runtime","nicknames":[],"who_cares":["postgresql","self-hosted","database"],"confidence":0.7,"fix_status":"available","needs_auth":"yes","worst_case":"database user reads fragments of server memory","analyst_note":"","how_to_check":"- Run `SELECT version();` in psql and check whether the server is PostgreSQL 17 or 18 below the fixed minor versions.\n- Check whether the file_fdw extension is installed on PostgreSQL 18 servers.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["postgresql-16-or-earlier","patched-minor-version"],"who_is_affected":"Any PostgreSQL server on major version 17 or 18 before 18.7 or 17.12 is affected, and the flaw needs a database user who can run COPY FROM. Servers on PostgreSQL 16 or earlier are not affected according to the description. Servers that only allow trusted, administrator-level database access have less exposure.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"medium"},"cost_usd":0.000737,"input_tokens":4592,"output_tokens":555,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-116310':14A,17A '-18':113C '-2026':13A,16A '17':112C,126C '17.12':120C '18':66B,108C '18.7':118C 'affect':106C,122C 'allow':76C 'code':62B,103C 'convers':55B,96C 'copi':2A,32B,72C 'cve':12A,15A 'databas':10A,18B,38B,78C 'disclos':81C 'error':4A,34B,56B,74C,97C 'fdw':58B,99C 'file':57B,98C 'follow':50B,91C 'free':28B,69C 'host':23B 'ignor':52B,93C 'input':48B,89C 'leak':6A 'let':36B 'longer':47B,88C 'major':110C 'memori':8A,44B,85C 'minor':114C 'nullifi':54B,95C 'path':63B,104C 'portion':41B,82C 'postgresql':1A,19B,30B,71C,117C,125C 'reach':59B,100C 'read':40B 'report':5A,35B,75C 'row':49B,90C 'runtim':20B 'self':22B 'self-host':21B 'server':7A,43B,84C 'unaffect':128C 'use':26B,67C 'use-after-fre':25B 'user':11A,39B,79C 'version':65B,107C,111C,115C,123C 'via':86C 'within':109C","nicknames":[],"mitigations":[],"who_affected":"Any PostgreSQL server on major version 17 or 18 before 18.7 or 17.12 is affected, and the flaw needs a database user who can run COPY FROM. Servers on PostgreSQL 16 or earlier are not affected according to the description. Servers that only allow trusted, administrator-level database access have less exposure.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["database","medium","postgresql","runtime","selfhosted"],"campaign_type":null,"search_a":"'-116310':14A,17A '-2026':13A,16A 'copi':2A 'cve':12A,15A 'databas':10A 'error':4A 'leak':6A 'memori':8A 'postgresql':1A 'report':5A 'server':7A 'user':11A","search_b":"'18':66B 'code':62B 'convers':55B 'copi':32B 'databas':18B,38B 'error':34B,56B 'fdw':58B 'file':57B 'follow':50B 'free':28B 'host':23B 'ignor':52B 'input':48B 'let':36B 'longer':47B 'memori':44B 'nullifi':54B 'path':63B 'portion':41B 'postgresql':19B,30B 'reach':59B 'read':40B 'report':35B 'row':49B 'runtim':20B 'self':22B 'self-host':21B 'server':43B 'use':26B 'use-after-fre':25B 'user':39B 'version':65B","search_c":"'-18':113C '17':112C,126C '17.12':120C '18':108C '18.7':118C 'affect':106C,122C 'allow':76C 'code':103C 'convers':96C 'copi':72C 'databas':78C 'disclos':81C 'error':74C,97C 'fdw':99C 'file':98C 'follow':91C 'free':69C 'ignor':93C 'input':89C 'longer':88C 'major':110C 'memori':85C 'minor':114C 'nullifi':95C 'path':104C 'portion':82C 'postgresql':71C,117C,125C 'reach':100C 'report':75C 'row':90C 'server':84C 'unaffect':128C 'use':67C 'user':79C 'version':107C,111C,115C,123C 'via':86C 'within':109C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-12T15:17:38+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","cvss_by":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-116310","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116310","severity":null,"published_at":"2026-11-12T15:17:38+00:00","modified_at":"2026-11-12T15:17:38+00:00","first_seen_at":"2026-11-12T15:41:54+00:00","fetched_at":"2026-11-12T15:41:54+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"}