CVE-2024-2044: PgAdmin4 Remote Code Execution Vulnerability
CRITICALCVE-2024-2044 is a CRITICAL (CVSS 9.9) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting PgAdmin4 libraries in the PyPI ecosystem. The issue involves pgadmin 4 vulnerable to unsafe deserialization and remote code execution by an authenticated user. Remediation is available by upgrading affected packages to version 8.4.
CVE-2024-2044 at a Glance
Security Impact
CVSS: 9.9
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:H/I:H/A:H).
How to Fix CVE-2024-2044
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.4
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-2044, 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.4), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. 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-2044 Affected PgAdmin4 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pgAdmin4
|
PyPI |
< 8.4
|
8.4
|
References
Frequently Asked Questions
What is CVE-2024-2044?
Which PgAdmin4 versions are affected?
What version fixes CVE-2024-2044?
Is pgAdmin4 affected?
What is the CVSS score of CVE-2024-2044?
What CWE is associated with CVE-2024-2044?
How can I check PyPI dependencies for CVE-2024-2044?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rj98-crf4-g69w",
"modified" : "2025-02-13T19:08:34Z",
"published" : "2024-03-07T21:30:22Z",
"aliases" : [ "CVE-2024-2044" ],
"summary" : "pgAdmin 4 vulnerable to Unsafe Deserialization and Remote Code Execution by an Authenticated user",
"details" : "pgAdmin prior to version 8.4 is affected by a path-traversal vulnerability while deserializing users’ sessions in the session handling code. If the server is running on Windows, an unauthenticated attacker can load and deserialize remote pickle objects and gain code execution. If the server is running on POSIX/Linux, an authenticated attacker can upload pickle objects, deserialize them and gain code execution.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pgAdmin4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-2044"
}, {
"type" : "WEB",
"url" : "https://github.com/pgadmin-org/pgadmin4/issues/7258"
}, {
"type" : "WEB",
"url" : "https://github.com/pgadmin-org/pgadmin4/commit/4e49d752fba72953acceeb7f4aa2e6e32d25853d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pgadmin-org/pgadmin4"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LUYN2JXKKHFSVTASH344TBRGWDH64XQV"
}, {
"type" : "WEB",
"url" : "https://www.shielder.com/advisories/pgadmin-path-traversal_leads_to_unsafe_deserialization_and_rce"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-31", "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-07T22:39:27Z",
"nvd_published_at" : "2024-03-07T21:15:08Z"
}
}