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

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 14.24, 15.19, 16.15, 17.11, 18.5 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-13 · Modified: 2026-08-29
- Aliases: ALPINE-CVE-2026-6464, UBUNTU-CVE-2026-6464, DEBIAN-CVE-2026-6464, CGA-xg9j-5m4w-mq8w, CGA-2rpx-3435-v8w4, CGA-4f9v-vrj2-8cw3, CGA-4v3v-q4h9-w5w3, CGA-5986-4c8c-26jx, CGA-7c2w-x5vp-vpg8, CGA-89pr-57mp-g5ff, CGA-8r43-h54h-3ggc, CGA-c7f7-f867-fhr9, CGA-cmfq-3p79-hx55, CGA-g363-g58r-mw6g, CGA-hw2g-rjxq-8hvw, CGA-hx9r-m2vr-64xm, CGA-j38w-8jjc-xc77, CGA-jwp4-vjj8-ph56, CGA-m92j-ccc6-3vc8, CGA-p696-664x-4f27, CGA-pffh-r4w8-v5j9, CGA-pxj7-455h-g943, CGA-vr9f-7v3r-8wvr
- Record: https://cvemate.com/vulnerability/CVE-2026-6464 · JSON: https://cvemate.com/vulnerability/CVE-2026-6464/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.358%, percentile 31.549%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 35)

- alpine postgresql15 (Alpine Linux): \< 15.19-r0
- alpine postgresql16 (Alpine Linux): \< 16.15-r0
- alpine postgresql17 (Alpine Linux): \< 17.11-r0
- alpine postgresql18 (Alpine Linux): \< 18.5-r0
- chainguard postgresql-14 (Chainguard): \< 14.24-r0
- chainguard postgresql-14-client (Chainguard): \< 14.24-r0
- chainguard postgresql-15 (Chainguard): \< 15.19-r0
- chainguard postgresql-15-client (Chainguard): \< 15.19-r0
- chainguard postgresql-16 (Chainguard): \< 16.15-r0
- chainguard postgresql-16-client (Chainguard): \< 16.15-r0
- chainguard postgresql-17 (Chainguard): \< 17.11-r0
- chainguard postgresql-17-client (Chainguard): \< 17.11-r0
- chainguard postgresql-18 (Chainguard): \< 18.6-r0
- chainguard postgresql-18-client (Chainguard): \< 18.6-r0
- wolfi postgresql-14 (Wolfi): \< 14.24-r0
- wolfi postgresql-14-client (Wolfi): \< 14.24-r0
- wolfi postgresql-15 (Wolfi): \< 15.19-r0
- wolfi postgresql-15-client (Wolfi): \< 15.19-r0
- wolfi postgresql-16 (Wolfi): \< 16.15-r0
- wolfi postgresql-16-client (Wolfi): \< 16.15-r0

## References

- <https://www.postgresql.org/support/security/CVE-2026-6464/>
- <https://security.alpinelinux.org/vuln/CVE-2026-6464>
- <https://ubuntu.com/security/CVE-2026-6464>
- <https://www.cve.org/CVERecord?id=CVE-2026-6464>
- <https://www.postgresql.org/about/news/postgresql-186-1711-1615-1519-1424-and-19-beta-3-released-3365/>
- <https://ubuntu.com/security/notices/USN-8653-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-6464>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6464>

---

Data as of 2026-12-05T04:10:41.819Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
