{"id":"JLSEC-2026-1592","details":"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.","modified":"2026-12-01T14:45:03.926332059Z","published":"2026-12-01T14:32:39.787Z","upstream":["CVE-2026-18408"],"database_specific":{"sources":[{"published":"2026-08-13T13:17:48.127Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-18408","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18408","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-18408","imported":"2026-11-21T04:27:54.399Z","modified":"2026-08-29T23:17:20.843Z"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"https://www.postgresql.org/support/security/CVE-2026-18408/"}],"affected":[{"package":{"name":"LibPQ_jll","ecosystem":"Julia","purl":"pkg:julia/LibPQ_jll?uuid=08be9ffa-1c94-5ee5-a977-46a84ec9b350"},"ranges":[{"type":"SEMVER","events":[{"introduced":"16.13.0+0"},{"last_affected":"16.14.0+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1592.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CNA"}]}