Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2026-7816
pgadmin pgadmin 4

Score8.7 High
CVSS 4.0
Exploit probability (EPSS)2.2%
within the next 30 days
CategoryCode execution & injection
Published11 May 2026
Last modified: 26 October 2026

In short

This vulnerability can be exploited remotely over the network, with a regular user account, without any user interaction.

A successful attack has high impact: reading confidential data, modifying data, crashing the system or making it unavailable.

Weakness type: OS command injection.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official 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: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Weakness: CWE-78 – OS command injection

Affected products

VendorProductVersions
pgadminpgadmin 4>=9.4 <9.15

Sources

Latest in the same category

  • CVE-2026-140281 Critical 9.2
    GPT-SoVITS through 20250606v2pro contains an unsafe deserialization vulnerability in the api.py /set_model endpoint that allows unauthenticated attackers to load arbitrary model checkpoints. Attackers can set…
    Code execution & injection · 1 December 2026
  • CVE-2026-121479 Medium 6.3
    A flaw was found in sequoia-sq. This vulnerability can lead to arbitrary code execution when the tool displays suggested command hints derived from untrusted inputs, such as user identities. Because command arguments…
    Code execution & injection · 1 December 2026
  • CVE-2026-139863 Medium 5.5
    A weakness has been identified in itsourcecode Stock Management System 1.0. This affects an unknown part of the file php_action/fetchProductImageUrl.php. This manipulation of the argument i causes sql injection. The…
    Code execution & injection · 30 November 2026
  • CVE-2026-139862 Medium 5.5
    A vulnerability was identified in itsourcecode Stock Management System 1.0. Affected by this vulnerability is an unknown functionality of the file php_action/fetchSelectedCategories.php. The manipulation of the…
    Code execution & injection · 30 November 2026
  • CVE-2026-139861 Medium 5.5
    A vulnerability was determined in itsourcecode Stock Management System 1.0. Affected is an unknown function of the file php_action/fetchSelectedBrand.php. Executing a manipulation of the argument brandId can lead to…
    Code execution & injection · 30 November 2026
  • CVE-2026-139860 Medium 5.5
    A vulnerability was found in itsourcecode Stock Management System 1.0. This impacts an unknown function of the file php_action/fetchOrderData.php. Performing a manipulation of the argument orderId results in sql…
    Code execution & injection · 30 November 2026