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…
EPSS 1.4%top 29%

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

0
High
VulnerabilityCVE-2026-7816cvecve-2026-7816
Published: 05/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.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
pgadmin-org/pgadmin4
pkg:github/pgadmin-org/pgadmin4
Affected versions
=9.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/26/2026, 20:17:06 UTC

Technical Analysis

This vulnerability in pgAdmin 4 affects the Import/Export query export functionality where user-supplied input is directly inserted into a psql \copy metacommand without proper sanitization. An authenticated user can inject payloads such as ") TO PROGRAM 'cmd'" to break out of the intended context and execute arbitrary OS commands on the server, or ") TO '/path'" to write arbitrary files. Additional parameters like format, on_error, and log_verbosity are also vulnerable due to raw interpolation. The flaw is addressed in pgAdmin 4 version 9.15 by implementing a parentheses-balance parser modeled after psql's tokenizer, allow-listing acceptable values for certain fields, rejecting null bytes in queries, and enforcing stricter type and gating validations.

Potential Impact

Successful exploitation allows an authenticated user to execute arbitrary operating system commands or write arbitrary files on the pgAdmin server, leading to full compromise of confidentiality, integrity, and availability of the affected system. This can result in unauthorized data access, data manipulation, or denial of service.

Mitigation Recommendations

A fix is available in pgAdmin 4 version 9.15 which addresses this vulnerability by sanitizing inputs and enforcing strict parsing and validation. Users should upgrade to version 9.15 or later to remediate this issue. Patch status is not explicitly confirmed in the provided data, but the vendor has released a fixed version. No additional mitigations are specified.

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: 05/11/2026, 15:36:50 UTC

Last enriched: 05/26/2026, 20:17:06 UTC

Last updated: 07/31/2026, 19:23:00 UTC

Views: 135

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