{
  "cveId": "CVE-2026-7816",
  "url": "https://patchblox.com/security/cve/CVE-2026-7816",
  "summary": "CVE-2026-7816 is fixed in pgAdmin 4 on 1 platform by pgAdmin 4 9.15 (version 9.15), released May 6, 2026. It is not reported as exploited. Patch Radar priority: High.",
  "title": "pgAdmin 4: OS command injection in Import/Export query export via psql metacommand breakout",
  "description": "OS command injection (CWE-78) vulnerability in pgAdmin 4 Import/Export query export.\n\nUser-supplied input was interpolated directly into a psql \\copy metacommand template without sanitization. An authenticated user could inject \u0022) TO PROGRAM \u0027cmd\u0027\u0022 to break out of the \\copy (...) context and achieve arbitrary command execution on the pgAdmin server, or \u0022) TO \u0027/path\u0027\u0022 for arbitrary file write. Additional fields (format, on_error, log_verbosity) were also raw-interpolated and exploitable.\n\nFix adds a parens-balance parser modeled on psql\u0027s strtokx tokenizer, allow-lists format/on_error/log_verbosity, rejects null bytes in the query, and tightens type and gating checks.\n\nThis issue affects pgAdmin 4: before 9.15.",
  "published": "2026-05-11T16:17:38Z",
  "severity": "",
  "cvss": 8.7,
  "cwe": "CWE-78: Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)",
  "epss": 0.01444,
  "epssPercentile": 0.73418,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://nvd.nist.gov/vuln/detail/CVE-2026-7816",
  "fixes": [
    {
      "platform": "windows-app",
      "product": "pgAdmin 4",
      "fixedVersion": "9.15",
      "fix": "pgAdmin 4 9.15",
      "url": "https://patchblox.com/security/fix/windows-app/postgresql.pgadmin-9.15",
      "released": "2026-05-06T00:00:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}