CVEfocus › CVE database › CVE-2026-6464

CVE-2026-6464PostgreSQL psql COPY FROM STDIN early failure processes data lines as psql commands

CVSS 8.1 HighEPSS 0.4% (higher than 30% of CVEs)Published 2026-08-13Updated 2026-08-29Assigner: PostgreSQL

Untrusted data inclusion in PostgreSQL psql COPY may allow a server administrator to elicit execution of data lines as psql commands, via error injection. If the "COPY FROM STDIN" or "\copy FROM STDIN" command fails before the server indicates that it awaits input rows, psql processes the in-line data rows as psql commands. "COPY FROM" with a filename is unaffected. The server administrator has no inherent control over the data rows, so a complete attack requires the attacker to separately acquire control of both the server and the data rows. Alternatively, an attacker controlling data rows alone might complete an attack through a coincidental error that they don't control. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.

CWE-829

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

145Fixed
4Fix pending
10Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04postgresql-18Fixed18.6-0ubuntu0.26.04.1UBUNTU-CVE-2026-6464
Ubuntu 24.04postgresql-16Fixed16.15-0ubuntu0.24.04.1UBUNTU-CVE-2026-6464
Ubuntu 22.04postgresql-14Fixed14.24-0ubuntu0.22.04.1UBUNTU-CVE-2026-6464
Ubuntu 20.04postgresql-12Fix pendingUBUNTU-CVE-2026-6464
Ubuntu 18.04postgresql-10Fix pendingUBUNTU-CVE-2026-6464
Ubuntu 16.04postgresql-9.5Fix pendingUBUNTU-CVE-2026-6464
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2026-6464
Debian 14postgresql-18Fixed18.6-1DEBIAN-CVE-2026-6464
Debian 13postgresql-17Fixed17.11-0+deb13u1DEBIAN-CVE-2026-6464
Debian 12postgresql-15Fixed15.19-0+deb12u1DEBIAN-CVE-2026-6464
Red Hat Enterprise Linux 10postgresqlFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-contribFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-docsFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-plperlFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-plpython3Fixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-pltclFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-private-develFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-private-libsFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-serverFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-server-develFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-staticFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-testFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-test-rpm-macrosFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-upgradeFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql-upgrade-develFixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql16Fixed0:16.15-1.el10_2RHSA-2026:70186
Red Hat Enterprise Linux 10postgresql18Fixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-contribFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-docsFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-plperlFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-plpython3Fixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-private-develFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-private-libsFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-serverFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-server-develFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-staticFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-testFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-test-rpm-macrosFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-upgradeFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql18-upgrade-develFixed0:18.6-1.el10_2RHSA-2026:67280
Red Hat Enterprise Linux 9pg_repackFixed0:1.5.1-1.module+el9.8.0+24090+8f0ee565RHSA-2026:69914
Red Hat Enterprise Linux 9pgauditFixed0:16.0-1.module+el9.8.0+24090+8f0ee565RHSA-2026:69914
Red Hat Enterprise Linux 9pgvectorFixed0:0.8.1-1.module+el9.8.0+23739+1c42644cRHSA-2026:67491
Red Hat Enterprise Linux 9postgisFixed0:3.5.3-6.module+el9.8.0+24839+3a67b9caRHSA-2026:67848
Red Hat Enterprise Linux 9postgis-clientFixed0:3.6.1-4.module+el9.8.0+24879+1364ef12RHSA-2026:67491
Red Hat Enterprise Linux 9postgis-docsFixed0:3.5.3-6.module+el9.8.0+24839+3a67b9caRHSA-2026:67848
Red Hat Enterprise Linux 9postgis-upgradeFixed0:3.5.3-6.module+el9.8.0+24839+3a67b9caRHSA-2026:67848
Red Hat Enterprise Linux 9postgis-utilsFixed0:3.6.1-4.module+el9.8.0+24879+1364ef12RHSA-2026:67491
Red Hat Enterprise Linux 9postgres-decoderbufsFixed0:2.4.0-1.Final.module+el9.8.0+24090+8f0ee565RHSA-2026:69914
Red Hat Enterprise Linux 9postgresqlFixed0:16.15-1.module+el9.8.0+24803+9dca000bRHSA-2026:69607
Red Hat Enterprise Linux 9postgresql-contribFixed0:13.23-6.el9_8RHSA-2026:69914
Red Hat Enterprise Linux 9postgresql-docsFixed0:18.6-1.module+el9.8.0+24816+5c11f535RHSA-2026:69914
Red Hat Enterprise Linux 9postgresql-plperlFixed0:15.19-1.module+el9.8.0+24800+a95bf172RHSA-2026:67848
Red Hat Enterprise Linux 9postgresql-plpython3Fixed0:16.15-1.module+el9.8.0+24803+9dca000bRHSA-2026:67848
Red Hat Enterprise Linux 9postgresql-pltclFixed0:13.23-6.el9_8RHSA-2026:67491
Red Hat Enterprise Linux 9postgresql-private-develFixed0:16.15-1.module+el9.8.0+24803+9dca000bRHSA-2026:67848
Red Hat Enterprise Linux 9postgresql-private-libsFixed0:16.15-1.module+el9.8.0+24803+9dca000bRHSA-2026:69914
Red Hat Enterprise Linux 9postgresql-serverFixed0:13.23-6.el9_8RHSA-2026:69914
Red Hat Enterprise Linux 9postgresql-server-develFixed0:18.6-1.module+el9.8.0+24816+5c11f535RHSA-2026:69914
Red Hat Enterprise Linux 9postgresql-staticFixed0:13.23-6.el9_8RHSA-2026:67491
Red Hat Enterprise Linux 9postgresql-testFixed0:16.15-1.module+el9.8.0+24803+9dca000bRHSA-2026:67848
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosFixed0:16.15-1.module+el9.8.0+24803+9dca000bRHSA-2026:69914
Red Hat Enterprise Linux 9postgresql-upgradeFixed0:13.23-6.el9_8RHSA-2026:67848
Red Hat Enterprise Linux 9postgresql-upgrade-develFixed0:16.15-1.module+el9.8.0+24803+9dca000bRHSA-2026:67848
Red Hat Enterprise Linux 8pg_repackFixed0:1.4.8-1.module+el8.9.0+19797+c4ce5969RHSA-2026:69924
Red Hat Enterprise Linux 8pgauditFixed0:1.4.0-7.module+el8.10.0+22214+9beb89d6RHSA-2026:69876
Red Hat Enterprise Linux 8postgres-decoderbufsFixed0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2026:69876
Red Hat Enterprise Linux 8postgresqlFixed0:16.15-1.module+el8.10.0+24863+d1dc0d60RHSA-2026:69924
Red Hat Enterprise Linux 8postgresql-contribFixed0:16.15-1.module+el8.10.0+24863+d1dc0d60RHSA-2026:69923
Red Hat Enterprise Linux 8postgresql-docsFixed0:12.22-10.module+el8.10.0+24893+321f112bRHSA-2026:69876
Red Hat Enterprise Linux 8postgresql-plperlFixed0:12.22-10.module+el8.10.0+24893+321f112bRHSA-2026:69923
Red Hat Enterprise Linux 8postgresql-plpython3Fixed0:12.22-10.module+el8.10.0+24893+321f112bRHSA-2026:69876
Red Hat Enterprise Linux 8postgresql-pltclFixed0:16.15-1.module+el8.10.0+24863+d1dc0d60RHSA-2026:69924
Red Hat Enterprise Linux 8postgresql-private-develFixed0:16.15-1.module+el8.10.0+24863+d1dc0d60RHSA-2026:69923
Red Hat Enterprise Linux 8postgresql-private-libsFixed0:15.19-1.module+el8.10.0+24831+9c841e4eRHSA-2026:69876
Red Hat Enterprise Linux 8postgresql-serverFixed0:15.19-1.module+el8.10.0+24831+9c841e4eRHSA-2026:69876
Red Hat Enterprise Linux 8postgresql-server-develFixed0:15.19-1.module+el8.10.0+24831+9c841e4eRHSA-2026:69924
Red Hat Enterprise Linux 8postgresql-staticFixed0:15.19-1.module+el8.10.0+24831+9c841e4eRHSA-2026:69924
Red Hat Enterprise Linux 8postgresql-testFixed0:15.19-1.module+el8.10.0+24831+9c841e4eRHSA-2026:69876
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFixed0:16.15-1.module+el8.10.0+24863+d1dc0d60RHSA-2026:69923
Red Hat Enterprise Linux 8postgresql-upgradeFixed0:16.15-1.module+el8.10.0+24863+d1dc0d60RHSA-2026:69923
Red Hat Enterprise Linux 8postgresql-upgrade-develFixed0:15.19-1.module+el8.10.0+24831+9c841e4eRHSA-2026:69876
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
AlmaLinux 10postgresql-test-rpm-macrosFixed16.15-1.el10_2ALSA-2026:70186
AlmaLinux 10postgresql18-test-rpm-macrosFixed18.6-1.el10_2ALSA-2026:67280
AlmaLinux 9pg_repackFixed1.4.8-2.module_el9.5.0+119+18833d03ALSA-2026:67491
AlmaLinux 9pgauditFixed1.7.0-1.module_el9.3.0+52+21733919ALSA-2026:67848
AlmaLinux 9pgvectorFixed0.8.1-1.module_el9.8.0+234+5456f35dALSA-2026:67491
AlmaLinux 9postgisFixed3.6.1-4.module_el9.8.0+310+22372bccALSA-2026:67491
AlmaLinux 9postgis-clientFixed3.6.1-4.module_el9.8.0+310+22372bccALSA-2026:67491
AlmaLinux 9postgis-docsFixed3.5.3-6.module_el9.8.0+311+c39b793bALSA-2026:67848
AlmaLinux 9postgis-upgradeFixed3.5.3-6.module_el9.8.0+311+c39b793bALSA-2026:67848
AlmaLinux 9postgis-utilsFixed3.5.3-6.module_el9.8.0+311+c39b793bALSA-2026:67848
AlmaLinux 9postgres-decoderbufsFixed3.3.1-1.Final.module_el9.8.0+234+5456f35dALSA-2026:67491
AlmaLinux 9postgresqlFixed13.23-6.el9_8ALSA-2026:67491
AlmaLinux 9postgresql-contribFixed15.19-1.module_el9.8.0+318+764e137cALSA-2026:67848
AlmaLinux 9postgresql-docsFixed18.6-1.module_el9.8.0+310+22372bccALSA-2026:69607
AlmaLinux 9postgresql-plperlFixed15.19-1.module_el9.8.0+318+764e137cALSA-2026:67848
AlmaLinux 9postgresql-plpython3Fixed18.6-1.module_el9.8.0+310+22372bccALSA-2026:69914
AlmaLinux 9postgresql-pltclFixed18.6-1.module_el9.8.0+310+22372bccALSA-2026:67491
AlmaLinux 9postgresql-private-develFixed16.15-1.module_el9.8.0+311+c39b793bALSA-2026:69607
AlmaLinux 9postgresql-private-libsFixed18.6-1.module_el9.8.0+310+22372bccALSA-2026:69914
AlmaLinux 9postgresql-serverFixed18.6-1.module_el9.8.0+310+22372bccALSA-2026:69607
AlmaLinux 9postgresql-server-develFixed18.6-1.module_el9.8.0+310+22372bccALSA-2026:69607
AlmaLinux 9postgresql-staticFixed15.19-1.module_el9.8.0+318+764e137cALSA-2026:67848
AlmaLinux 9postgresql-testFixed15.19-1.module_el9.8.0+318+764e137cALSA-2026:67848
AlmaLinux 9postgresql-test-rpm-macrosFixed18.6-1.module_el9.8.0+310+22372bccALSA-2026:67491
AlmaLinux 9postgresql-upgradeFixed13.23-6.el9_8ALSA-2026:67848
AlmaLinux 9postgresql-upgrade-develFixed16.15-1.module_el9.8.0+311+c39b793bALSA-2026:69914
AlmaLinux 8pg_repackFixed1.5.1-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:69876
AlmaLinux 8pgauditFixed1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1ALSA-2026:69924
AlmaLinux 8postgres-decoderbufsFixed2.4.0-1.Final.module_el8.10.0+3798+606ebb9fALSA-2026:69924
AlmaLinux 8postgresqlFixed15.19-1.module_el8.10.0+4287+eeacefccALSA-2026:69876
AlmaLinux 8postgresql-contribFixed16.15-1.module_el8.10.0+4286+3c445f53ALSA-2026:69923
AlmaLinux 8postgresql-docsFixed16.15-1.module_el8.10.0+4286+3c445f53ALSA-2026:69924
AlmaLinux 8postgresql-plperlFixed16.15-1.module_el8.10.0+4286+3c445f53ALSA-2026:69923
AlmaLinux 8postgresql-plpython3Fixed12.22-10.module_el8.10.0+4290+614f71e9ALSA-2026:69876
AlmaLinux 8postgresql-pltclFixed15.19-1.module_el8.10.0+4287+eeacefccALSA-2026:69876
AlmaLinux 8postgresql-private-develFixed16.15-1.module_el8.10.0+4286+3c445f53ALSA-2026:69923
AlmaLinux 8postgresql-private-libsFixed15.19-1.module_el8.10.0+4287+eeacefccALSA-2026:69876
AlmaLinux 8postgresql-serverFixed15.19-1.module_el8.10.0+4287+eeacefccALSA-2026:69876
AlmaLinux 8postgresql-server-develFixed15.19-1.module_el8.10.0+4287+eeacefccALSA-2026:69924
AlmaLinux 8postgresql-staticFixed16.15-1.module_el8.10.0+4286+3c445f53ALSA-2026:69923
AlmaLinux 8postgresql-testFixed12.22-10.module_el8.10.0+4290+614f71e9ALSA-2026:69923
AlmaLinux 8postgresql-test-rpm-macrosFixed12.22-10.module_el8.10.0+4290+614f71e9ALSA-2026:69876
AlmaLinux 8postgresql-upgradeFixed15.19-1.module_el8.10.0+4287+eeacefccALSA-2026:69924
AlmaLinux 8postgresql-upgrade-develFixed16.15-1.module_el8.10.0+4286+3c445f53ALSA-2026:69923
Rocky Linux 10postgresql16Fixed0:16.15-1.el10_2RLSA-2026:70186
Rocky Linux 10postgresql18Fixed0:18.6-1.el10_2RLSA-2026:67280
Rocky Linux 9pg_repackFixed0:1.5.1-1.module+el9.8.0+40159+adcaa225RLSA-2026:67491
Rocky Linux 9pgauditFixed0:16.0-1.module+el9.8.0+40159+adcaa225RLSA-2026:67848
Rocky Linux 9pgvectorFixed0:0.8.1-1.module+el9.8.0+40158+490b3c67RLSA-2026:67848
Rocky Linux 9postgres-decoderbufsFixed0:1.9.7-1.Final.module+el9.7.0+40011+28af63c9RLSA-2026:67848
Rocky Linux 9postgresqlFixed0:13.23-6.el9_8RLSA-2026:69607
Rocky Linux 8pg_repackFixed0:1.4.6-3.module+el8.9.0+1603+444d1b54RLSA-2026:69924
Rocky Linux 8pgauditFixed0:16.0-1.module+el8.10.0+40057+c37a0e3dRLSA-2026:69876
Rocky Linux 8postgres-decoderbufsFixed0:2.4.0-1.Final.module+el8.10.0+1858+fcc46a79RLSA-2026:69876
Rocky Linux 8postgresqlFixed0:12.22-10.module+el8.10.0+40333+409bd81cRLSA-2026:69924
Alpine Linux 3.24postgresql16Fixed16.15-r0ALPINE-CVE-2026-6464
Alpine Linux 3.24postgresql17Fixed17.11-r0ALPINE-CVE-2026-6464
Alpine Linux 3.24postgresql18Fixed18.5-r0ALPINE-CVE-2026-6464
Alpine Linux 3.23postgresql16Fixed16.15-r0ALPINE-CVE-2026-6464
Alpine Linux 3.23postgresql17Fixed17.11-r0ALPINE-CVE-2026-6464
Alpine Linux 3.23postgresql18Fixed18.5-r0ALPINE-CVE-2026-6464
Alpine Linux 3.22postgresql15Fixed15.19-r0ALPINE-CVE-2026-6464
Alpine Linux 3.22postgresql16Fixed16.15-r0ALPINE-CVE-2026-6464
Alpine Linux 3.22postgresql17Fixed17.11-r0ALPINE-CVE-2026-6464
Alpine Linux 3.21postgresql15Fixed15.19-r0ALPINE-CVE-2026-6464
Alpine Linux 3.21postgresql16Fixed16.15-r0ALPINE-CVE-2026-6464
Alpine Linux 3.21postgresql17Fixed17.11-r0ALPINE-CVE-2026-6464

What the vendor says

As published in the CVE record by PostgreSQL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.