PostgreSQL · published 2026-08-13
CVE-2026-6464PostgreSQL psql COPY FROM STDIN early failure processes data lines as psql commands
Routine No exploitation evidence; EPSS 0.4%.
CVE-2026-6464 is not known to be exploited in the wild. EPSS estimates a 0.4% chance of exploitation in the next 30 days, higher than 30% of all CVEs. This PostgreSQL vulnerability: CVSS 8.1 (v3.1), a successful attack gives total control of the component. Fixed upstream in PostgreSQL 18.7, 17.12, 16.16, 15.20 (+1 more); patched packages are out for Debian, Ubuntu and Red Hat Enterprise Linux; Ubuntu still has unfixed releases. Routine: patch when convenient.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
Fixed upstream in PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25.
Linux distribution packages
If you run the distro’s package rather than an upstream build, this is the version to look for.
| Distro | Release | Package | Status |
|---|---|---|---|
| Debian | 13 trixie | postgresql-17 | Fixed in 17.11-0+deb13u1 |
| 12 bookworm | postgresql-15 | Fixed in 15.19-0+deb12u1 | |
| Ubuntu | 26.04 LTS | postgresql-18 | Fixed in 18.6-0ubuntu0.26.04.1 |
| 24.04 LTS | postgresql-16 | Fixed in 16.15-0ubuntu0.24.04.1 | |
| 22.04 LTS | postgresql-14 | Fixed in 14.24-0ubuntu0.22.04.1 | |
| 20.04 LTS | postgresql-12 | No fix yet | |
| Red Hat Enterprise Linux | RHEL 10 | postgresql16 | Fixed in 16.15-1.el10_2 RHSA-2026:70186 |
| RHEL 10 | postgresql18 | Fixed in 18.6-1.el10_2 RHSA-2026:67280 | |
| RHEL 9 | postgresql | Fixed in 13.23-6.el9_8 RHSA-2026:69607 | |
| RHEL 6 | postgresql | Won’t fix |
From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.
Patch events
DatabasePostgreSQL
PostgreSQL security releases: 18.7, 17.12, 16.16, 15.20, 14.25
Upgrade to
18.717.1216.1615.2014.25Why: Vendor security release for server software (most severe: CVE-2026-116326).
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | No | CISA KEV |
| Ransomware use | — | CISA KEV |
| EPSS (30-day exploitation probability) | 0.4% (30th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 8.1 (v3.1)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | CNA / CISA ADP |
| SSVC exploitation | none | CISA Vulnrichment |
| SSVC automatable | No | CISA Vulnrichment |
| SSVC technical impact | total | CISA Vulnrichment |
Affected versions (from the CVE record)#
- PostgreSQL
18to before18.6(affected)17to before17.11(affected)16to before16.15(affected)15to before15.19(affected)0to before14.24(affected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.