CVE-2024-2044: PgAdmin4 Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-rj98-crf4-g69w
CVSS 9.9
CWE-502 CWE-31 CWE-22
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-2044
GHSA Identifier GHSA-rj98-crf4-g69w
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product PgAdmin4
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

pgAdmin4 fixed: 8.4
pip install pgAdmin4>=8.4
Verify Direct and Transitive Dependencies

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

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.

CVE-2024-2044 Affected PgAdmin4 Versions

1 component(s)
Fixed Versions:
8.4
Product / Package Ecosystem Affected Versions Fixed Version
pgAdmin4
PyPI
< 8.4
8.4

References

Frequently Asked Questions

What is CVE-2024-2044?
CVE-2024-2044 is a security vulnerability in PgAdmin4 involving pgAdmin 4 vulnerable to Unsafe Deserialization and Remote Code Execution by an Authenticated user under CWE-502: Deserialization of Untrusted Data.
Which PgAdmin4 versions are affected?
Affected versions include releases prior to 8.4 across affected packages: pgAdmin4.
What version fixes CVE-2024-2044?
Upgrading to 8.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pgAdmin4 affected?
Yes, pgAdmin4 is affected in releases prior to 8.4. Upgrade your dependency to 8.4 or later.
What is the CVSS score of CVE-2024-2044?
CVE-2024-2044 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-2044?
CVE-2024-2044 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for CVE-2024-2044?
Run the dependency tree command: 'pip show pgAdmin4'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}