CVE-2026-17566Disclosure(pgadmin / pgadmin_4)

LOWCVSS 9.4 · CRITICAL

Signal is active with 1 mentions in latest observed window

Immediate actions

  • Patch pgadmin pgadmin_4 systems immediately

Recommended action window: Monitor and triage in normal cycle

NVD 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 since 9.1 (2010), the default on every PostgreSQL version pgAdmin 4 currently supports (13-18); under that default psql's own \copy tokenizer treats \ as an ordinary character, so a single quote immediately after it closes the string literal. A query such as SELECT 'a\') TO PROGRAM 'echo pwned' x' was therefore accepted as "balanced" by pgAdmin's checker (which believed the ) was still inside the string), while psql, run through the actual rendered command line, closes the string at that point and treats the following ) as the end of the wrapping \copy (...) subquery, exposing an attacker-chosen TO PROGRAM '<command>' clause that psql executes via popen() -- independent of a subsequent syntax error later on the same line. This is the same class of bug as CVE-2025-12762/CVE-2025-13780 (RCE via psql meta-command/COPY injection during PLAIN-format dump restore), reached through an independently written defense in a different module (Import/Export Data rather than Restore) that had its own, different logic bug (inverted backslash-escape semantics rather than a BOM-defeated regex anchor). The fix rejects any backslash inside a single-quoted string in the query outright, rather than picking one of the two possible psql interpretations. This is intentionally conservative: because the correct interpretation of \ depends on the target server's standard_conforming_strings setting, which the checker cannot reliably know at validation time, refusing the query is safer than guessing. This issue affects pgAdmin 4: from the introduction of _is_query_parens_balanced() before 9.18.

0.5/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-78CWE-115

Priority

LOW

Exploitation

NONE

PoC

NONE

Patch

AVAILABLE

Momentum

STABLE

Are you affected?

If you run products in this scope, you should treat this CVE as relevant to your environment.

  • pgadmin_4

Threat summary

  • Patch or workaround signal is available
  • 7 mentions across 5 observed days
  • Momentum state: stable

What's happening

  • Patch or workaround mentioned in 3 signals
  • Technical details provided in 6 signals
  • Disclosure: 4 classified signals
  • Peaked 4d ago at 2 mentions (2026-08-01); latest day: 1
  • 7 total mentions across 5 days

Affected systems

Vendors
Products
pgadmin_4

Deep dive

Activity timeline7 mentions / 5d
01122Mentions · 2026-08-01: 2Mentions · 2026-08-02: 1Mentions · 2026-08-03: 1Mentions · 2026-08-05: 2Mentions · 2026-09-13: 1Patch / Workaround · 2026-08-03: 1Patch / Workaround · 2026-08-05: 2Technical Details · 2026-08-01: 2Technical Details · 2026-08-02: 1Technical Details · 2026-08-03: 1Technical Details · 2026-08-05: 208-0108-0208-0308-0509-13
Signal classification2 categories
Disclosure
466.7%
Patch
233.3%
Referenced assets6 URLs
Classification over time
DateTotalLabels
2026-08-012
Disclosure2
2026-08-021
Disclosure1
2026-08-031
Patch1
2026-08-052
Disclosure1Patch1
Full discourse7 posts
  • Daily CyberSecurity@Daily_CyberSec
    Disclosure

    A pgAdmin 4 RCE flaw, CVE-2026-17566, lets attackers run OS commands via psql. Two more critical bugs also got fixed in version 9.17. #pgAdmin #PostgreSQL #RCE #CVE202617566 #SQLInjection #CyberSecurity http://securityonline.info/pgadmin-4-rce-flaw-cve-2026-17566/

    Post summary

    A previously undisclosed RCE vulnerability in pgAdmin 4 (CVE‑2026‑17566) allows attackers to execute arbitrary OS commands through psql; the issue has been patched in version 9.17 and is not reported as actively exploited.

    0802741.1K
    12.9K followersView on X
  • kokumօtօ@__kokumoto
    Patch

    pgAdmin 4で重大(Critical)な脆弱性3件が修正。CVE-2026-17566はCVSSスコア9.9で、Import/Export Dataクエリでのバックスラッシュの取扱不一致に起因する遠隔コード実行。CVE-2025-13780横並び。CVE-2026-17349はCVSSスコア9.6で、アドホックサーバクローン時の認証情報漏洩。 https://securityonline.info/pgadmin-4-rce-flaw-cve-2026-17566/

    Post summary

    The message informs that three critical CVEs in pgAdmin 4 have been fixed, providing relevant details such as CVSS scores and affected functions.

    010421.1K
    7.8K followersView on X
  • CCB Alert@CCBalert
    Patch

    Warning: #pgAdmin prior to version 9.17 contains multiple security issues, including the critical OS command injection vulnerability #CVE-2026-17566 (CVSS:9.4) leading to #RCE. #Patch #Patch #Patch

    Post summary

    The tweet warns that pgAdmin versions before 9.17 have a critical OS command injection vulnerability (CVE‑2026‑17566) and urges users to apply a patch.

    01000457
    7.2K followersView on X
  • IntegSec@integ_sec

    CVE-2026-17566: pgAdmin 4 Import/Export Data Command Injection - What It Means for Your Business and How to Respond https://hubs.li/Q04xklQV0

    0000045
    35 followersView on X
  • Hugo | DevOps | Cybersecurity 🇱🇻@HugoValters
    Disclosure

    CVE-2026-17566 - Critical RCE in pgAdmin 4. Import/Export Data tool allows command injection via crafted SQL. CVSS 9.9. Unpatched - restrict access immediately. #CVE #pgAdmin #infosec #cvealert #infosec #sysadmin #devsecops #devops #cybersecurityawareness #cybersecurity #cybersecuritytips #cybersecurityalert #cybersecuritynews #cvealert #splunk #sigma #redteam #blueteam #ethicalhacking #ethicalhacker https://www.valtersit.com/cve/CVE-2026-17566/

    Post summary

    The post discloses a critical RCE vulnerability in pgAdmin 4’s Import/Export Data tool, outlining technical details and urging immediate restriction due to the lack of a patch.

    0000057
    980 followersView on X
  • Infoflowcloud@infoflowcloud
    Disclosure

    🚨*CVE* CVE-2026-17566 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 l… https://www.cve.org/CVERecord?id=CVE-2026-17566 ----- Traducción: CVE-2026-17566: la… http://infoflow.cloud`

    Post summary

    This post provides a brief disclosure of a command injection flaw in pgAdmin 4’s Import/Export feature, outlining how user‑supplied SQL is improperly integrated into a Jinja template for execution.

    0000040
    96 followersView on X
  • CVE@CVEnew
    Disclosure

    CVE-2026-17566 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 l… https://www.cve.org/CVERecord?id=CVE-2026-17566

    Post summary

    The post discloses a flaw in pgAdmin 4's Import/Export Data tool that allows command injection via user‑supplied SQL, but contains no evidence of exploitation or correction.

    000001.4K
    57.9K followersView on X
CPE platform detail1 entries

1 of 1 entries

PartVendorProductVersionTarget SWTarget HW
Apppgadminpgadmin_4-postgresql-

Explore more