CVE-2024-3116: Pgadmin4 Remote Code Execution Vulnerability
HIGHCVE-2024-3116 is a HIGH (CVSS 7.4) remote code execution vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Pgadmin4 libraries in the PyPI ecosystem. The issue involves pgadmin remote code execution (rce) vulnerability. Remediation is available by upgrading affected packages to version 8.5.
CVE-2024-3116 at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L).
How to Fix CVE-2024-3116
To remediate this vulnerability, upgrade all affected Pgadmin4 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pgadmin4>=8.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pgadmin4
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-3116, inspect your installed packages using pip:
pip show pgadmin4
Analyze the terminal output to locate any version of Pgadmin4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.5), your application is affected.
Note: The pip show pgadmin4 command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Pgadmin4, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-3116 Affected Pgadmin4 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pgadmin4
|
PyPI |
< 8.5
|
8.5
|
References
Frequently Asked Questions
What is CVE-2024-3116?
Which Pgadmin4 versions are affected?
What version fixes CVE-2024-3116?
Is pgadmin4 affected?
What is the CVSS score of CVE-2024-3116?
What CWE is associated with CVE-2024-3116?
How can I check PyPI dependencies for CVE-2024-3116?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-27jx-ffw8-xrqv",
"modified" : "2025-02-11T19:03:30Z",
"published" : "2024-04-04T15:30:34Z",
"aliases" : [ "CVE-2024-3116" ],
"summary" : "pgAdmin Remote Code Execution (RCE) vulnerability",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pgadmin4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-3116"
}, {
"type" : "WEB",
"url" : "https://github.com/pgadmin-org/pgadmin4/issues/7326"
}, {
"type" : "WEB",
"url" : "https://github.com/pgadmin-org/pgadmin4/commit/fbbbfe22dd468bcfef1e1f833ec32289a6e56a8b"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/aelmokhtar/689a8be7e3bd535ec01992d8ec7b2b98"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pgadmin-org/pgadmin4"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GIF5T34JTTYRGIN5YPT366BDFG6452A2"
}, {
"type" : "WEB",
"url" : "https://www.vicarius.io/vsociety/posts/remote-code-execution-vulnerability-in-pgadmin-cve-2024-3116"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-04T17:01:56Z",
"nvd_published_at" : "2024-04-04T15:15:39Z"
}
}