---
id: "CVE-2026-116310"
page: "https://infrastack.ai/live/CVE-2026-116310"
kind: "vulnerability"
aliases: ["CVE-2026-116310"]
title: "PostgreSQL: COPY FROM error reporting leaks server memory to database users"
severity: "medium"
cvss: 4.3
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["database", "postgresql", "runtime", "self-hosted"]
not_affected_if: ["patched-minor-version", "postgresql-16-or-earlier"]
published_at: "2026-11-12T15:17:38+00:00"
first_seen_at: "2026-11-12T15:41:54+00:00"
updated_at: "2026-11-12T15:44:02+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116310", "first_seen_at": "2026-11-12T15:41:54+00:00"}]
exploit_sources: []
---

# PostgreSQL: COPY FROM error reporting leaks server memory to database users

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

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.

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

## How to check

- Run `SELECT version();` in psql and check whether the server is PostgreSQL 17 or 18 below the fixed minor versions.
- Check whether the file_fdw extension is installed on PostgreSQL 18 servers.

## Fix

- PostgreSQL 18: move to `18.7` or later.
- PostgreSQL 17: move to `17.12` or later.

## Timeline

- 2026-11-12T15:41:54+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-116310

## From the sources

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.

---

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