JLSEC-2026-1595: High severity julia/libpq_jll vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 18.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 17.11 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 16.15 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 15.19 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 14.24
Event History
Frequently Asked Questions
Which COPY usage patterns are affected?
The issue affects in-line data supplied with COPY FROM STDIN or \copy FROM STDIN when the command fails before the server indicates that it is ready for input rows. COPY FROM with a filename is unaffected.
What does an attacker need to exploit this reliably?
A complete attack requires control of both the server and the in-line data rows, because a server administrator does not inherently control those rows. An attacker controlling only the data rows might exploit a coincidental error, but would not control the error condition.
Which PostgreSQL versions need updating?
Affected versions are those before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24. Update to the applicable listed release or later.