Vulnerability · Published Apr 4, 2024 · Assigned by PostgreSQL
CVE-2024-3116Remote Code Execution Vulnerability through the validate binary path API in pgAdmin 4
High 7.4
In plain English
A high-severity command injection in pgAdmin 4 from pgadmin.org. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 65.8% (higher than 99.3% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
pgAdmin <= 8.4 is affected by a Remote Code Execution (RCE) vulnerability through the validate binary path API. This vulnerability allows attackers to execute arbitrary code on the server hosting PGAdmin, posing a severe risk to the database management system's integrity and the security of the underlying data.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | pgadmin4 | 8.5 | GHSA-27jx-ffw8-xrqv |
| PyPI | pgadmin4 | 8.5 | PYSEC-2026-1767 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| pgadmin.org | pgAdmin 4 | 0 – before 8.5 |
Weakness: CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
References
- https://github.com/pgadmin-org/pgadmin4/issues/7326 issue-tracking
- https://gist.github.com/aelmokhtar/689a8be7e3bd535ec01992d8ec7b2b98 mitigation
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GIF5T34JTTYRGIN5YPT366BDFG6452A2/
- https://www.vicarius.io/vsociety/posts/remote-code-execution-vulnerability-in-pgadmin-cve-2024-3116