GitHub Advisoryadvisory · PyPI
GHSA-ghp8-52vx-77j4 pgAdmin failed to properly control the server code
MEDIUM
Official page ↗
- Aliases
- CVE-2023-5002
- Ecosystem
- PyPI
- Packages
- pgadmin4
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:H/A:H
- Weaknesses
- CWE-78
- Reviewed
- 2023-09-22
Affected packages
• PyPI pgadmin4: < 7.7 → fixed in 7.7
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.7 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.
Related
Alias · CVE (1)
- CVE-2023-5002 A flaw was found in pgAdmin. vulnerability
Weakness · CWE (1)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-5002 advisory
- https://github.com/pgadmin-org/pgadmin4/issues/6763 web
- https://github.com/pgadmin-org/pgadmin4/commit/35f05e49b3632a0a674b9b36535a7fe2d93dd0c2 web
- https://bugzilla.redhat.com/show_bug.cgi?id=2239164 web
- https://github.com/pgadmin-org/pgadmin4 package
- https://lists.fedoraproject.org/archives/list/[email protected]/message/2S24D3S2GVNGTDNE6SF2OQSOPU3H72UW web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/VIRTMQZEE6K7RD37ERZ2UFYFLEUXLQU3 web