Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-7816: Vulnerability in pgadmin.org pgAdmin 4

0
High
VulnerabilityCVE-2026-7816cvecve-2026-7816
Published: Mon May 11 2026 (05/11/2026, 14:35:50 UTC)
Source: CVE Database V5
Vendor/Project: pgadmin.org
Product: pgAdmin 4

Description

OS command injection (CWE-78) vulnerability in pgAdmin 4 Import/Export query export. User-supplied input was interpolated directly into a psql \copy metacommand template without sanitization. An authenticated user could inject ") TO PROGRAM 'cmd'" to break out of the \copy (...) context and achieve arbitrary command execution on the pgAdmin server, or ") TO '/path'" for arbitrary file write. Additional fields (format, on_error, log_verbosity) were also raw-interpolated and exploitable. Fix adds a parens-balance parser modeled on psql's strtokx tokenizer, allow-lists format/on_error/log_verbosity, rejects null bytes in the query, and tightens type and gating checks. This issue affects pgAdmin 4: before 9.15.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/11/2026, 15:51:56 UTC

Technical Analysis

This vulnerability arises from user-supplied input being directly interpolated into a psql \copy metacommand template without proper sanitization in pgAdmin 4's Import/Export query export functionality. An authenticated attacker can inject payloads such as ") TO PROGRAM 'cmd'" to execute arbitrary commands or ") TO '/path'" to write files arbitrarily on the server hosting pgAdmin. Additional parameters like format, on_error, and log_verbosity are also vulnerable due to raw interpolation. The vendor's fix adds a parentheses-balance parser modeled on psql's tokenizer, implements allow-lists for certain parameters, rejects null bytes, and tightens type and gating checks. This issue affects pgAdmin 4 versions before 9.15.

Potential Impact

Successful exploitation allows an authenticated user to execute arbitrary OS commands or write arbitrary files on the pgAdmin server, leading to full compromise of confidentiality, integrity, and availability of the affected system. The CVSS 3.1 base score is 8.8, indicating high severity with network attack vector, low attack complexity, and no user interaction required beyond authentication.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The description notes that a fix is implemented in version 9.15 and later, which includes improved input parsing and validation. Until official confirmation is available, users should upgrade to pgAdmin 4 version 9.15 or later once released. In the meantime, restrict access to authenticated users and monitor for suspicious activity related to Import/Export query exports.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PostgreSQL
Date Reserved
2026-05-04T21:26:58.164Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a01f792cbff5d86102f20fd

Added to database: 5/11/2026, 3:36:50 PM

Last enriched: 5/11/2026, 3:51:56 PM

Last updated: 5/12/2026, 3:49:30 AM

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses