{"id":"JLSEC-2026-1595","details":"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.","modified":"2026-12-01T14:45:02.545032528Z","published":"2026-12-01T14:32:39.787Z","upstream":["CVE-2026-6464"],"database_specific":{"license":"CC-BY-4.0","sources":[{"imported":"2026-11-21T04:27:54.402Z","modified":"2026-08-29T23:17:21.723Z","published":"2026-08-13T13:19:16.347Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-6464","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6464","database_specific":{"status":"Modified"},"affected":{"postgresql:postgresql":["\u003e= 14.0, \u003c 14.24","\u003e= 15.0, \u003c 15.19","\u003e= 16.0, \u003c 16.15","\u003e= 17.0, \u003c 17.11","\u003e= 18.0, \u003c 18.5"]},"id":"CVE-2026-6464"}]},"references":[{"type":"WEB","url":"https://www.postgresql.org/support/security/CVE-2026-6464/"}],"affected":[{"package":{"name":"LibPQ_jll","ecosystem":"Julia","purl":"pkg:julia/LibPQ_jll?uuid=08be9ffa-1c94-5ee5-a977-46a84ec9b350"},"ranges":[{"type":"SEMVER","events":[{"introduced":"16.0.0+0"},{"last_affected":"16.14.0+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1595.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CNA"}]}