---
id: "CVE-2024-2044"
page: "https://infrastack.ai/live/CVE-2024-2044"
kind: "vulnerability"
aliases: ["CVE-2024-2044", "GHSA-rj98-crf4-g69w"]
title: "pgAdmin 4 vulnerable to Unsafe Deserialization and Remote Code Execution by an Authenticated user"
severity: "critical"
cvss: 9.9
epss: 0.79465
exploited: false
status: "open"
category: "package"
products: [{"name": "pgAdmin4", "fixed": ["8.4"], "affected": "< 8.4", "ecosystem": "pypi"}, {"name": "pgadmin 4", "fixed": ["8.4"], "affected": "< 8.4", "ecosystem": "vendor"}, {"name": "fedoraproject fedora", "fixed": [], "affected": "= 40", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-22", "cwe-31", "cwe-502", "linux", "package", "pgadmin", "postgresql", "python", "windows"]
not_affected_if: ["version-8.4-or-later"]
published_at: "2024-03-07T21:15:08+00:00"
first_seen_at: "2026-11-16T15:48:11+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-rj98-crf4-g69w", "first_seen_at": "2026-11-16T15:48:11+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-2044", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "poc", "url": "https://www.shielder.com/advisories/pgadmin-path-traversal_leads_to_unsafe_deserialization_and_rce/"}, {"type": "epss", "score": 0.79465, "url": "https://api.first.org/data/v1/epss?cve=CVE-2024-2044"}]
---

# pgAdmin 4 vulnerable to Unsafe Deserialization and Remote Code Execution by an Authenticated user

Link for people: https://infrastack.ai/live/CVE-2024-2044 (this .md is for agents)

pgAdmin 4 before 8.4 has a path-traversal flaw in how it loads user session data, which leads to unsafe pickle deserialization. An attacker can run code on the server: unauthenticated on Windows, and after logging in on Linux and other POSIX systems.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:pgAdmin4 affected < 8.4 fixed 8.4
- vendor:pgadmin 4 affected < 8.4 fixed 8.4
- vendor:fedoraproject fedora affected = 40 fixed no fixed version listed

## How to check

- Check the installed version: `pip show pgAdmin4` and compare against `8.4`
- Find pgAdmin servers in your environment and note whether they run on Windows or POSIX

## Fix

- pgAdmin 4 (pypi pgAdmin4): upgrade to `8.4` or later

## Timeline

- 2026-11-16T15:48:11+00:00 ghsa https://github.com/advisories/GHSA-rj98-crf4-g69w
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-2044

## Documents

- [advisory] Vendor advisory: github.com https://github.com/pgadmin-org/pgadmin4/issues/7258
- [fix] Patch: github.com https://github.com/pgadmin-org/pgadmin4/commit/4e49d752fba72953acceeb7f4aa2e6e32d25853d
- [poc] Exploit: www.shielder.com https://www.shielder.com/advisories/pgadmin-path-traversal_leads_to_unsafe_deserialization_and_rce/

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
