CVE-2026-6464 PostgreSQL psql COPY FROM STDIN early failure processes data lines as psql commands
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/postgresql18(Red Hat:enterprise_linux:10.2) | < 18.6-1.el10_2 | 18.6-1.el10_2 |
| redhat/postgresql16(Red Hat:enterprise_linux:10.2) | < 16.15-1.el10_2 | 16.15-1.el10_2 |
| redhat/postgresql16(Red Hat:enterprise_linux_eus:10.0) | < 16.15-1.el10_0 | 16.15-1.el10_0 |
| redhat/postgresql(Red Hat:rhel_els:7) | < 9.2.24-9.el7_9.7 | 9.2.24-9.el7_9.7 |
| redhat/postgresql:16-8100020260910192321.489197e6(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/postgresql:15-8100020260906175012.489197e6(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/postgresql:12-8100020260917081510.489197e6(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/postgresql:12-8040020260924163759.522a0ee4(Red Hat:rhel_aus:8.4) | All versions | No fix listed |
| redhat/postgresql:12-8040020260924163759.522a0ee4(Red Hat:rhel_eus_long_life:8.4) | All versions | No fix listed |
| redhat/postgresql:12-8060020260923144955.ad008a3a(Red Hat:rhel_aus:8.6) | All versions | No fix listed |
| redhat/postgresql:12-8060020260923144955.ad008a3a(Red Hat:rhel_eus_long_life:8.6) | All versions | No fix listed |
| redhat/postgresql:15-8080020260921162003.63b34585(Red Hat:rhel_tus:8.8) | All versions | No fix listed |
| redhat/postgresql:12-8080020260923144922.63b34585(Red Hat:rhel_tus:8.8) | All versions | No fix listed |
| redhat/postgresql:15-8080020260921162003.63b34585(Red Hat:rhel_e4s:8.8) | All versions | No fix listed |
| redhat/postgresql:12-8080020260923144922.63b34585(Red Hat:rhel_e4s:8.8) | All versions | No fix listed |
| redhat/postgresql:16-9080020260907191505.rhel9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/postgresql:18-9080020260914093252.rhel9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/postgresql(Red Hat:enterprise_linux:9) | < 13.23-6.el9_8 | 13.23-6.el9_8 |
| redhat/postgresql:15-9080020260903073937.rhel9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/postgresql:15-9020020260917092006.rhel9(Red Hat:rhel_e4s:9.2) | All versions | No fix listed |
| redhat/postgresql(Red Hat:rhel_e4s:9.2) | < 13.23-1.el9_2.5 | 13.23-1.el9_2.5 |
| redhat/postgresql:15-9040020260917091622.rhel9(Red Hat:rhel_e4s:9.4) | All versions | No fix listed |
| redhat/postgresql:16-9040020260922062609.rhel9(Red Hat:rhel_e4s:9.4) | All versions | No fix listed |
| redhat/postgresql(Red Hat:rhel_e4s:9.4) | < 13.23-1.el9_4.4 | 13.23-1.el9_4.4 |
| redhat/postgresql:15-9060020260917102335.rhel9(Red Hat:rhel_eus:9.6) | All versions | No fix listed |
Show 77 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/postgresql:16-9060020260921091101.rhel9(Red Hat:rhel_eus:9.6) | All versions | No fix listed |
| redhat/postgresql(Red Hat:rhel_eus:9.6) | < 13.23-1.el9_6.5 | 13.23-1.el9_6.5 |
| redhat/ansible-automation-platform/bootc-automation-portal-rhel9:1790657374(Red Hat:ansible_portal:2.2::el9) | All versions | No fix listed |
| redhat/rhui5/rhua-rhel9:1790242004(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/postgresql(Red Hat:rhel_els:6) | All versions | No fix listed |
| debian/postgresql-15(Debian:12) | < 15.19-0+deb12u1 | 15.19-0+deb12u1 |
| debian/postgresql-15(Debian:12) | = 15.10-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.11-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.12-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.12-0+deb12u2 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.13-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.14-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.15-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.16-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.17-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.18-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.3-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.3-1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-2 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.4-3 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.5-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.6-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.7-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.8-0+deb12u1 | No fix listed |
| debian/postgresql-15(Debian:12) | = 15.9-0+deb12u1 | No fix listed |
| debian/postgresql-17(Debian:13) | < 17.11-0+deb13u1 | 17.11-0+deb13u1 |
| debian/postgresql-17(Debian:13) | = 17.10-0+deb13u1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.5-1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.6-0+deb13u1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.6-1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.7-0+deb13u1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.8-0+deb13u1 | No fix listed |
| debian/postgresql-17(Debian:13) | = 17.9-0+deb13u1 | No fix listed |
| debian/postgresql-18(Debian:14) | < 18.6-1 | 18.6-1 |
| debian/postgresql-18(Debian:14) | = 18.0-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18.1-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18.1-2 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18.2-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18.3-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18.4-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta1+20250612-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta1+20250624-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta1+20250701-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta1-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta2-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~beta3-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~rc1-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~rc1-2 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~rc1-3 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250318+g4078da6c478-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250331-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250405-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250421-1 | No fix listed |
| debian/postgresql-18(Debian:14) | = 18~~devel.20250502-1 | No fix listed |
| ubuntu/postgresql-14(Ubuntu:22.04) | < 14.24-0ubuntu0.22.04.1 | 14.24-0ubuntu0.22.04.1 |
| alpine/postgresql15(Alpine:v3.21) | < 15.19-r0 | 15.19-r0 |
| alpine/postgresql15(Alpine:v3.22) | < 15.19-r0 | 15.19-r0 |
| alpine/postgresql16(Alpine:v3.21) | < 16.15-r0 | 16.15-r0 |
| alpine/postgresql16(Alpine:v3.22) | < 16.15-r0 | 16.15-r0 |
| alpine/postgresql16(Alpine:v3.23) | < 16.15-r0 | 16.15-r0 |
| alpine/postgresql16(Alpine:v3.24) | < 16.15-r0 | 16.15-r0 |
| alpine/postgresql17(Alpine:v3.21) | < 17.11-r0 | 17.11-r0 |
| alpine/postgresql17(Alpine:v3.22) | < 17.11-r0 | 17.11-r0 |
| alpine/postgresql17(Alpine:v3.23) | < 17.11-r0 | 17.11-r0 |
| alpine/postgresql17(Alpine:v3.24) | < 17.11-r0 | 17.11-r0 |
| alpine/postgresql18(Alpine:v3.23) | < 18.5-r0 | 18.5-r0 |
| alpine/postgresql18(Alpine:v3.24) | < 18.5-r0 | 18.5-r0 |
| ubuntu/postgresql-16(Ubuntu:24.04) | < 16.15-0ubuntu0.24.04.1 | 16.15-0ubuntu0.24.04.1 |
| ubuntu/postgresql-18(Ubuntu:26.04) | < 18.6-0ubuntu0.26.04.1 | 18.6-0ubuntu0.26.04.1 |
| postgresql | >= 14.0, < 14.24 | 14.24 |
| postgresql | >= 15.0, < 15.19 | 15.19 |
| postgresql | >= 16.0, < 16.15 | 16.15 |
| postgresql | >= 17.0, < 17.11 | 17.11 |
| postgresql | >= 18.0, < 18.5 | 18.5 |
| azure linux postgresql(Azure Linux:3.0) | < 16.15-1 | 16.15-1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- www.postgresql.org vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:67280 patch vendor-advisory
- RHSA-2026:70186 patch vendor-advisory
- RHSA-2026:72282 patch vendor-advisory
- RHSA-2026:84585 patch vendor-advisory
- RHSA-2026:69876 patch vendor-advisory
- RHSA-2026:69923 patch vendor-advisory
- RHSA-2026:69924 patch vendor-advisory
- RHSA-2026:73912 patch vendor-advisory
- RHSA-2026:72363 patch vendor-advisory
- RHSA-2026:70602 patch vendor-advisory
- RHSA-2026:72362 patch vendor-advisory
- RHSA-2026:67491 patch vendor-advisory
- RHSA-2026:67848 patch vendor-advisory
- RHSA-2026:69607 patch vendor-advisory
- RHSA-2026:69914 patch vendor-advisory
- RHSA-2026:70763 patch vendor-advisory
- RHSA-2026:72361 patch vendor-advisory
- RHSA-2026:70762 patch vendor-advisory
- RHSA-2026:70856 patch vendor-advisory
- RHSA-2026:72283 patch vendor-advisory
- RHSA-2026:69698 patch vendor-advisory
- RHSA-2026:70559 patch vendor-advisory
- RHSA-2026:72281 patch vendor-advisory
- RHSA-2026:73404 patch vendor-advisory
- RHSA-2026:71603 patch vendor-advisory
- Red Hat Bugzilla 2515306 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-6464 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8653-1 vendor-advisory
- security.alpinelinux.org vendor-advisory