CVE-2026-17566

CRITICALPre-NVD 9.99.9
EchelonGraph scoreMEDIUM confidence

Score 9.9 from GitHub Security Advisory (severity: CRITICAL) published 2026-07-31. a secondary CVSS source baseline 9.9; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: epss, ghsa, secondary
Trending — 3 sources updated this weekElevated
9.9EG
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: 0%CVSS: 9.9Exploit: Elevated riskExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

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/, 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 '' 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.

CVSS v3
9.9
EG Score
9.9(medium)
EG Risk
61(Track)
EG Risk 61/100SSVC: Track

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed
Severity99% × 45%
Exploitation40% × 40%
Automatability0% × 15%
Action: Routine — remediate on your standard cadence.
EPSS PROB
0%
EPSS %ILE
41%
KEV
Not listed

Published

July 31, 2026

Last Modified

August 5, 2026

Advisory Details (2)

Auto-updated Sep 9, 2026
Upstream fix merged — awaiting tagged release. Sources: github_commit.
generic

OS command injection in Import/Export Data via backslash-escape mismatch in the query guard (CVE-2026-17566) · Issue #10213 · pgadmin-org/pgadmin4 · GitHub

https://github.com/pgadmin-org/pgadmin4/issues/10213
github_commit

commit 1496fabe28c9 (pgadmin-org/pgadmin4)

Fix landed in pgadmin-org/pgadmin4 commit 1496fabe28c9 — awaiting tagged release

https://github.com/pgadmin-org/pgadmin4/commit/1496fabe28c9f825f6bac0f0d000d9d3276322c3

Vendor Advisories for CVE-2026-17566(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Weakness Classification(2)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 42× in last 7d / 180× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 317 total refreshes for this CVE.

  1. 2026-09-15 07:06 UTCEG score recompute
  2. 2026-09-15 07:06 UTCGHSA enrichment
  3. 2026-09-15 03:01 UTCGHSA enrichment
  4. 2026-09-14 16:03 UTCEG score recompute
  5. 2026-09-14 16:03 UTCGHSA enrichment
  6. 2026-09-14 12:06 UTCGHSA enrichment
  7. 2026-09-14 08:06 UTCGHSA enrichment
  8. 2026-09-14 04:09 UTCGHSA enrichment
  9. 2026-09-14 00:12 UTCGHSA enrichment
  10. 2026-09-13 20:15 UTCEG score recompute
  11. 2026-09-13 20:15 UTCGHSA enrichment
  12. 2026-09-13 16:46 UTCEPSS rescore
  13. 2026-09-13 16:09 UTCGHSA enrichment
  14. 2026-09-13 12:11 UTCGHSA enrichment
  15. 2026-09-13 08:14 UTCGHSA enrichment
  16. 2026-09-13 04:17 UTCGHSA enrichment
  17. 2026-09-13 00:19 UTCGHSA enrichment
  18. 2026-09-12 20:19 UTCGHSA enrichment
  19. 2026-09-12 16:22 UTCEG score recompute
  20. 2026-09-12 16:22 UTCGHSA enrichment
  21. 2026-09-12 15:00 UTCEPSS rescore
  22. 2026-09-12 12:25 UTCGHSA enrichment
  23. 2026-09-12 08:28 UTCGHSA enrichment
  24. 2026-09-12 04:29 UTCGHSA enrichment
  25. 2026-09-12 00:31 UTCGHSA enrichment
Show 75 more
  1. 2026-09-11 19:20 UTCGHSA enrichment
  2. 2026-09-11 14:57 UTCEG score recompute
  3. 2026-09-11 14:57 UTCGHSA enrichment
  4. 2026-09-11 14:52 UTCEPSS rescore
  5. 2026-09-11 09:36 UTCEPSS rescore
  6. 2026-09-11 06:48 UTCGHSA enrichment
  7. 2026-09-11 02:51 UTCGHSA enrichment
  8. 2026-09-10 22:54 UTCGHSA enrichment
  9. 2026-09-10 18:56 UTCGHSA enrichment
  10. 2026-09-10 12:55 UTCEG score recompute
  11. 2026-09-10 12:55 UTCGHSA enrichment
  12. 2026-09-10 09:34 UTCEPSS rescore
  13. 2026-09-10 07:18 UTCGHSA enrichment
  14. 2026-09-10 03:20 UTCGHSA enrichment
  15. 2026-09-09 10:59 UTCGHSA enrichment
  16. 2026-09-09 07:02 UTCEG score recompute
  17. 2026-09-09 07:02 UTCGHSA enrichment
  18. 2026-09-08 22:00 UTCEPSS rescore
  19. 2026-09-08 03:27 UTCGHSA enrichment
  20. 2026-09-07 23:29 UTCGHSA enrichment
  21. 2026-09-07 19:32 UTCEG score recompute
  22. 2026-09-07 19:32 UTCGHSA enrichment
  23. 2026-09-07 16:01 UTCEPSS rescore
  24. 2026-09-06 22:29 UTCGHSA enrichment
  25. 2026-09-06 18:30 UTCGHSA enrichment
  26. 2026-09-06 14:32 UTCEG score recompute
  27. 2026-09-06 14:32 UTCGHSA enrichment
  28. 2026-09-06 13:47 UTCEPSS rescore
  29. 2026-09-06 10:35 UTCGHSA enrichment
  30. 2026-09-06 06:38 UTCGHSA enrichment
  31. 2026-09-06 02:41 UTCGHSA enrichment
  32. 2026-09-05 22:44 UTCGHSA enrichment
  33. 2026-09-05 18:46 UTCEG score recompute
  34. 2026-09-05 18:46 UTCGHSA enrichment
  35. 2026-09-05 08:40 UTCGHSA enrichment
  36. 2026-09-05 04:41 UTCGHSA enrichment
  37. 2026-09-04 14:28 UTCEG score recompute
  38. 2026-09-04 14:28 UTCGHSA enrichment
  39. 2026-09-04 10:29 UTCEG score recompute
  40. 2026-09-04 10:29 UTCGHSA enrichment
  41. 2026-09-04 05:06 UTCEPSS rescore
  42. 2026-09-04 04:01 UTCGHSA enrichment
  43. 2026-09-03 21:10 UTCGHSA enrichment
  44. 2026-09-03 09:09 UTCEG score recompute
  45. 2026-09-03 09:08 UTCGHSA enrichment
  46. 2026-09-02 14:11 UTCEPSS rescore
  47. 2026-09-02 08:11 UTCGHSA enrichment
  48. 2026-09-01 22:31 UTCEG score recompute
  49. 2026-09-01 22:31 UTCGHSA enrichment
  50. 2026-09-01 13:53 UTCEPSS rescore
  51. 2026-09-01 07:26 UTCEG score recompute
  52. 2026-09-01 07:26 UTCGHSA enrichment
  53. 2026-09-01 04:39 UTCEPSS rescore
  54. 2026-08-31 23:25 UTCGHSA enrichment
  55. 2026-08-31 06:00 UTCGHSA enrichment
  56. 2026-08-31 02:02 UTCGHSA enrichment
  57. 2026-08-30 22:05 UTCEG score recompute
  58. 2026-08-30 22:05 UTCGHSA enrichment
  59. 2026-08-30 19:17 UTCEPSS rescore
  60. 2026-08-30 18:07 UTCGHSA enrichment
  61. 2026-08-30 14:10 UTCGHSA enrichment
  62. 2026-08-30 10:10 UTCGHSA enrichment
  63. 2026-08-30 06:13 UTCGHSA enrichment
  64. 2026-08-30 02:16 UTCEG score recompute
  65. 2026-08-30 02:16 UTCGHSA enrichment
  66. 2026-08-30 01:22 UTCEPSS rescore
  67. 2026-08-29 22:19 UTCEG score recompute
  68. 2026-08-29 22:19 UTCGHSA enrichment
  69. 2026-08-28 21:41 UTCEPSS rescore
  70. 2026-08-28 04:54 UTCGHSA enrichment
  71. 2026-08-28 00:57 UTCGHSA enrichment
  72. 2026-08-27 20:46 UTCEG score recompute
  73. 2026-08-27 20:46 UTCGHSA enrichment
  74. 2026-08-27 14:25 UTCEPSS rescore
  75. 2026-08-27 12:47 UTCGHSA enrichment

Publicly available exploits

(1 reference)

Working exploit code is in the public domain (1 GitHub PoC). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.

  • GitHub PoCHackSpeak/CVE-2026-17566
    First seen Aug 4, 2026

    pgAdmin 4 Import/Export RCE (CVE-2026-17566) PoC - TO PROGRAM injection via backslash-escape mismatch

    Open source ↗

Frequently asked(5)

What is CVE-2026-17566?
CVE-2026-17566 is a critical vulnerability published on July 31, 2026. 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, createimportexportjob() (route POST…
When was CVE-2026-17566 disclosed?
CVE-2026-17566 was first published in the National Vulnerability Database on July 31, 2026, with the most recent update on August 5, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-17566 actively exploited?
CVE-2026-17566 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0% probability of exploitation in the next 30 days, which ranks it in the top 59.5% of all scored CVEs.
What is the CVSS score of CVE-2026-17566?
CVE-2026-17566 has a CVSS v3 base score of 9.9 (NVD).
How do I remediate CVE-2026-17566?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-17566, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

Explore the affected products and dependency analysis for CVE-2026-17566

Explore →

Is Your Infrastructure Affected by CVE-2026-17566?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.