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

- Severity: High 8.1 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-08-13T13:00:16.158Z
- Modified: 2026-09-08T08:48:04.900Z
- Also known as: BIT-POSTGRESQL-2026-6464
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 18 before 18.6; from 17 before 17.11; from 16 before 16.15; from 15 before 15.19; before 14.24
- postgresql postgresql: from 14.0 before 14.24; from 15.0 before 15.19; from 16.0 before 16.15; from 17.0 before 17.11; from 18.0 before 18.5
- postgresql (Bitnami): before 14.24.0; from 15.0.0 before 15.19.0; from 16.0.0 before 16.15.0; from 17.0.0 before 17.11.0; from 18.0.0 before 18.5.0

## Every score

- PostgreSQL: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.postgresql.org/support/security/CVE-2026-6464/> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6464> (web)

## Sources

- CVE List: [CVE-2026-6464](https://www.cve.org/CVERecord?id=CVE-2026-6464), CVE Terms of Use, modified 2026-08-29
- NVD: [CVE-2026-6464](https://nvd.nist.gov/vuln/detail/CVE-2026-6464), Public domain, modified 2026-08-29
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2026-6464](https://osv.dev/vulnerability/BIT-POSTGRESQL-2026-6464), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-6464 · Whole record: https://cve.day/CVE-2026-6464.json · Rebuilt by cve.day 2026-11-25T22:59:32.720Z
