{"id":"CVE-2026-116241","aliases":["CVE-2026-116241"],"related":[],"kind":"vulnerability","state":"published","title":"pgAdmin 4: Import/Export Data query export runs a command through a backslash in a double-quoted identifier","summary":"pgAdmin 4's Import/Export Data tool wraps a user's query export in a psql \\copy (...) TO command and checks that the query's parentheses are balanced so that nothing can escape the wrapper. The check rejected a backslash inside a single-quoted string, but not inside a double-quoted identifier, where it treated the next double quote as closing the identifier. psql's \\copy parser applies the connection's escape character to whichever quote opened a token, so with standard_conforming_strings off a backslash-escaped double quote does not close the identifier. pgAdmin's and psql's view of the quoting then diverged, a closing parenthesis hidden from the check ended the \\copy (...) wrapper, and a following TO PROGRAM clause was executed by psql on the pgAdmin host, as the operating-system account running pgAdmin, before the server rejected the statement. An ordinary database role can turn standard_conforming_strings off for itself, and the Import/Export Data permission is granted to non-administrators by default.\n\nThis is a bypass of the fix for CVE-2026-17566. The fix rejects any backslash inside a double-quoted identifier, as was already done for single-quoted strings, since its meaning depends on a server setting that cannot be known reliably when the query is validated.\n\nThis issue affects pgAdmin 4: before 9.19.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"pgAdmin 4's Import/Export Data tool wraps a user's query export in a psql \\copy (...) TO command and checks that the query's parentheses are balanced so that nothing can escape the wrapper. The check rejected a backslash inside a single-quoted string, but not inside a double-quoted identifier, where it treated the next double quote as closing the identifier. psql's \\copy parser applies the connection's escape character to whichever quote opened a token, so with standard_conforming_strings off a backslash-escaped double quote does not close the identifier. pgAdmin's and psql's view of the quoting then diverged, a closing parenthesis hidden from the check ended the \\copy (...) wrapper, and a following TO PROGRAM clause was executed by psql on the pgAdmin host, as the operating-system account running pgAdmin, before the server rejected the statement. An ordinary database role can turn standard_conforming_strings off for itself, and the Import/Export Data permission is granted to non-administrators by default.\n\nThis is a bypass of the fix for CVE-2026-17566. The fix rejects any backslash inside a double-quoted identifier, as was already done for single-quoted strings, since its meaning depends on a server setting that cannot be known reliably when the query is validated.\n\nThis issue affects pgAdmin 4: before 9.19.","source":"cvelist"}],"published":"2026-10-30T19:55:13.194Z","modified":"2026-11-06T17:17:14.710Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":9.4,"rating":"CRITICAL"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"PostgreSQL","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":9.4,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-78","CWE-115"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"9.19","status":"affected"}],"vendor":"pgadmin.org","product":"pgAdmin 4","repo":"https://github.com/pgadmin-org/pgadmin4","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"9.19"}],"vendor":"pgadmin","product":"pgadmin_4","cpe":"cpe:2.3:a:pgadmin:pgadmin_4:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/10663","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pgadmin-org/pgadmin4/commit/9be31a019f780647fb689c458408c8803263c812","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Yonghwa Lee (Xint by Theori) <underdog@theori.io>","Dave Page <dpage@pgadmin.org>","Hitesh Jambhale <hitesh.jambhale@enterprisedb.com>","Ashesh Vashi <ashesh.vashi@enterprisedb.com>"],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-06T16:09:55.189Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116241","url":"https://www.cve.org/CVERecord?id=CVE-2026-116241","licence":"CVE Terms of Use","modified":"2026-11-06T16:10:14.464Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116241","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116241","licence":"Public domain","modified":"2026-11-06T17:17:14.710Z"}],"updatedAt":"2026-11-25T22:59:48.009Z","epss":{"score":0.00429,"percentile":0.39068,"date":"2026-12-01T12:00:22.000Z"}}