High [CVE-2026-6464] PostgreSQL psql: Arbitrary command execution via untrusted data in COPY FROM STDIN
This high-severity Red Hat Linux advisory covers CVE-2026-6464 affecting Red Hat Enterprise Linux 10.0 Extended Update Support, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published Record updated
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.
Summary
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.5, 17.11, 16.15, 15.19, and 14.24 are affected. During the `COPY FROM STDIN` operation, untrusted data can be mistakenly interpreted as psql commands if an error injection causes the command to fail prematurely.
This could allow an attacker to achieve arbitrary command execution. Successful exploitation requires the attacker to control both the server and the data being copied, or to leverage a coincidental error while controlling only the data.
Red Hat severity: Important — CVSS 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H). Weakness: CWE-829.
- < 18.5
- < 17.11
- < 16.15
- < 15.19
- < 14.24
Official advisory · high-confidence parse· fetched 15 days ago·verify at source
- postgresql18-0:18.6-1.el10_2
- postgresql16-0:16.15-1.el10_2
- postgresql16-0:16.15-1.el10_0
- postgresql:16-8100020260910192321.489197e6
- postgresql:15-8100020260906175012.489197e6
- postgresql:12-8100020260917081510.489197e6
- postgresql:12-8040020260924163759.522a0ee4
- postgresql:12-8060020260923144955.ad008a3a
- postgresql:15-8080020260921162003.63b34585
- postgresql:12-8080020260923144922.63b34585
- postgresql:16-9080020260907191505.rhel9
- postgresql:18-9080020260914093252.rhel9
- postgresql-0:13.23-6.el9_8
- postgresql:15-9080020260903073937.rhel9
- postgresql:15-9020020260917092006.rhel9
- postgresql-0:13.23-1.el9_2.5
- postgresql:15-9040020260917091622.rhel9
- postgresql:16-9040020260922062609.rhel9
- postgresql-0:13.23-1.el9_4.4
- postgresql:16-9060020260921091101.rhel9
- postgresql-0:13.23-1.el9_6.5
- ansible-automation-platform/bootc-automation-portal-rhel9:1790657374
- rhui5/rhua-rhel9:1790242004
- RHSA-2026:67280
- RHSA-2026:70186
- RHSA-2026:72282
- RHSA-2026:69876
- RHSA-2026:69923
- RHSA-2026:69924
- RHSA-2026:73912
- RHSA-2026:72363
- RHSA-2026:70602
- RHSA-2026:72362
- RHSA-2026:67491
- RHSA-2026:67848
- RHSA-2026:69607
- RHSA-2026:69914
- RHSA-2026:70763
- RHSA-2026:72361
- RHSA-2026:70762
- RHSA-2026:70856
- RHSA-2026:72283
- RHSA-2026:70559
Official advisory · high-confidence parse· fetched 15 days ago·verify at source
Mitigation checklist
- Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Official advisory · high-confidence parse· fetched 15 days ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.