Vulnerability · Published Sep 22, 2023 · Assigned by fedora
CVE-2023-5002Pgadmin4: remote code execution by an authenticated user
Medium 6.0
In plain English
A medium-severity OS command injection in pgadmin4. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.6 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | pgadmin4 | 7.7 | GHSA-ghp8-52vx-77j4 |
| PyPI | pgadmin4 | 7.7 | PYSEC-2026-1774 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| pgadmin4 | see references |
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H
References
- RHBZ#2239164 issue-tracking, x_refsource_REDHAT
- https://github.com/pgadmin-org/pgadmin4/issues/6763
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3/