JLSEC-2026-1592: High severity julia/libpq_jll vulnerability
Untrusted data inclusion in pgdump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql \restrict meta-command input expansion. The fix for CVE-2025-8714 introduced \restrict and \unrestrict to block this attack, but \unrestrict itself was sufficient for an attack. pgdumpall is also affected. pgrestore is affected when used to generate a plain-format dump. Non-core use of \restrict would be affected, but we've not identified non-core use. 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
Who can exploit this issue?
An attacker needs malicious superuser-level control of the origin PostgreSQL server. Exploitation occurs when a dump from that server is restored with psql, causing code to run as the client operating system account performing the restore.
Which dump and restore workflows are affected?
pg_dump and pg_dumpall are affected. pg_restore is affected when it is used to generate a plain-format dump; non-core uses of the \restrict meta-command may also be affected, although no such uses have been identified.
Are all PostgreSQL versions affected?
Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected. The prior mitigation introduced for CVE-2025-8714 is not sufficient because \unrestrict can itself be used in the attack.