{"id":"JLSEC-2026-1592","aliases":["JLSEC-2026-1592"],"related":["CVE-2026-18408"],"kind":"vulnerability","state":"published","title":"Untrusted data inclusion in pgdump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-tim…","summary":"Untrusted data inclusion in `pg_dump` 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.  `pg_dumpall` is also affected.  `pg_restore` 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.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"Untrusted data inclusion in `pg_dump` 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.  `pg_dumpall` is also affected.  `pg_restore` 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.","format":"markdown","source":"jlsec"}],"published":"2026-12-01T14:32:39.787Z","modified":"2026-12-01T14:45:03.926Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"16.13.0+0","status":"affected","lastAffected":"16.14.0+0"}],"ecosystem":"Julia","package":"LibPQ_jll","purl":"pkg:julia/LibPQ_jll?uuid=08be9ffa-1c94-5ee5-a977-46a84ec9b350","source":"jlsec"}],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2026-18408/","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-1592","url":"https://osv.dev/vulnerability/JLSEC-2026-1592","licence":"CC-BY-4.0","modified":"2026-12-01T14:45:03.926Z"}],"updatedAt":"2026-12-01T14:57:25.001Z"}