CVE-2026-116241: OS Command Injection in pgAdmin 4 Import/Export Data
- Vendor
- Pgadmin
CVE-2026-116241 is an authenticated OS command-injection vulnerability in pgAdmin 4 versions before 9.19 that bypasses the fix for CVE-2026-17566. The Import/Export Data tool embeds export queries in a psql \copy wrapper and uses _is_query_parens_balanced() to prevent premature closure. The validator rejects backslashes in single-quoted strings but permits them in double-quoted identifiers. When standard_conforming_strings is disabled, pgAdmin and psql interpret backslash-escaped double quotes differently, allowing a crafted query to conceal a closing parenthesis from validation, escape the wrapper, and introduce a TO PROGRAM clause. This executes an arbitrary command on the pgAdmin host under the operating-system account running pgAdmin, before PostgreSQL rejects the statement.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A low-privileged authenticated user can cross the database-management security boundary and execute arbitrary operating-system commands on the pgAdmin host, rather than merely on the PostgreSQL server. Commands inherit the pgAdmin process account's privileges, potentially exposing accessible credentials and data, permitting modification of application resources, and disrupting services. A subsequent database syntax error does not indicate that execution was prevented, because the command can run before the statement is rejected.
Mitigation
If you can’t patch tonight, do this now.
Until the upgrade is deployed, disable access to Import/Export Data or restrict its permission to trusted administrators. Restrict access to the pgAdmin interface to reduce exposure. Do not rely solely on standard_conforming_strings being enabled by default: ordinary database roles can disable it for themselves.
Remediation
Patch, then assume compromise.
Upgrade pgAdmin 4 to version 9.19 or later. The fix rejects backslashes inside double-quoted identifiers during query-export validation, matching the existing treatment of single-quoted strings without depending on an attacker-controlled server setting. Related import/export validation also rejects backslashes and null bytes in schema, table, and column names. Verify the installed version directly, including in container deployments.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-116241 exploited in the wild?
- As of Nov 14, 2026, Mallory has no reports of CVE-2026-116241 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-116241?
- As of Nov 14, 2026, Mallory has found no public exploit for CVE-2026-116241.
- Is there a patch for CVE-2026-116241?
- Upgrade pgAdmin 4 to version 9.19 or later. The fix rejects backslashes inside double-quoted identifiers during query-export validation, matching the existing treatment of single-quoted strings without depending on an attacker-controlled server setting.
- What products are affected by CVE-2026-116241?
- Pgadmin 4.
- How severe is CVE-2026-116241?
- CVE-2026-116241 has a CVSS v4 score of 9.4 (Critical) and an EPSS score of 0.34% (28th percentile) as of Nov 14, 2026.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.