A use-after-free vulnerability in PostgreSQL's COPY FROM error reporting can allow a database user to disclose portions of server memory. This occurs when a longer input row follows an ignored or nullified conversion error. The issue affects PostgreSQL major versions 17 and 18, specifically versions before 17.12.0 and 18.7.0. The file_fdw extension also reaches the same vulnerable code path. Versions prior to 17.0.0 are not affected. A fix is available in PostgreSQL 17.12.0 and 18.7.0.