LIVE · cybersecurity feed
Live wire
cve recordcritical

CVE-2026-17566

pgadmin · pgadmin 4

Published
CVSS9.9
Severitycritical
WeaknessCWE-78
ExploitedNot in CISA KEV

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Description

pgAdmin 4's Import/Export Data tool builds a psql \copy (...) command line by interpolating a user-supplied SQL query into a Jinja template and passing the rendered line to psql via --command. To stop an attacker from breaking out of the (...) wrapper, create_import_export_job() (route POST /import_export/job/<sid>, gated only by the ordinary, commonly-granted tools_import_export_data permission) validated the query with a hand-written parenthesis-balance checker, _is_query_parens_balanced(). That checker always treated a backslash before a single quote (\') as escaping the quote, i.e. as if standard_conforming_strings were off. PostgreSQL has defaulted standard_conforming_strings to on sinc

References

← Back to the CVE Tracker

Our coverage of CVE-2026-17566

No stories yet. This page updates automatically when we publish reporting that references CVE-2026-17566.