Advisory

PYSEC-2026-1774

Also known as: CVE-2023-5002, GHSA-ghp8-52vx-77j4

Summary

pgAdmin failed to properly control the server code

Details

A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. Versions of pgAdmin prior to 7.7 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.

Severity

Medium Basis: CVSS v3 score 6, vector CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H

Dates

Published
2026-07-07 11:45 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

pgadmin4

PyPI · All systems

Affected

  • introduced 0, fixed 7.7 (ecosystem)

Fixed versions

7.7

Fix

  • Fixed version 7.7
    pip install --upgrade pgadmin4==7.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences