Vulnerability record · CVE-2024-2044 · published 7 March 2024
CVE-2024-2044: pgAdmin path traversal in session handling enables unsafe deserialization RCE
Pgadmin · Pgadmin 4
pgAdmin 8.3 and earlier is affected by a path-traversal flaw in the session handling code that deserializes user sessions. On Windows, an unauthenticated attacker can load and deserialize remote pickle objects, leading to code execution; on POSIX/Linux, an authenticated attacker can upload and deserialize pickle objects to achieve code execution.
Description
pgAdmin <= 8.3 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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.9, very high EPSS, public exploit reference, and remote code execution with no authentication on Windows make this an urgent risk.
What it is
pgAdmin 8.3 and earlier is affected by a path-traversal flaw in the session handling code that deserializes user sessions. On Windows, an unauthenticated attacker can load and deserialize remote pickle objects, leading to code execution; on POSIX/Linux, an authenticated attacker can upload and deserialize pickle objects to achieve code execution.
Impact
An attacker can execute arbitrary code on the pgAdmin server, potentially compromising the host and any connected database credentials or sessions.
Attack surface
Reachable over the network through the session handling component. On Windows no authentication is required; on POSIX/Linux the attacker must be authenticated. No user interaction is indicated.
Exploitation
Not listed in CISA KEV, but EPSS is very high (0.79465, 99.583rd percentile) and a third-party advisory tagged Exploit is referenced, indicating public exploit information exists.
What to do
- Upgrade pgAdmin to a version later than 8.3 as soon as a fixed release is available.
- If immediate upgrade is not possible, restrict network access to the pgAdmin server to trusted users and networks.
- On Windows, treat the pgAdmin service as exposed and prioritize patching or isolating it.
- On POSIX/Linux, enforce least privilege and strong authentication for all pgAdmin accounts.
- Monitor pgAdmin session storage and logs for unexpected pickle files or path traversal patterns.
Detection
- Inspect pgAdmin session directories for unexpected or suspicious pickle files.
- Monitor web server and pgAdmin logs for path traversal sequences in session-related requests.
- Alert on unusual child processes or command execution spawned by the pgAdmin service.
- Track authentication events and session creation anomalies, especially on Windows where no auth is required.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/pgadmin-org/pgadmin4/issues/7258 | Issue TrackingVendor Advisory |
| https://lists.fedoraproject.org/archives/list/[email protected]/message/LUYN2JXKKHFSVTASH344TBRGW | Mailing List |
| https://www.shielder.com/advisories/pgadmin-path-traversal_leads_to_unsafe_deserialization_and_rce/ | ExploitThird Party Advisory |
| https://github.com/pgadmin-org/pgadmin4/issues/7258 | Issue TrackingVendor Advisory |
| https://lists.fedoraproject.org/archives/list/[email protected]/message/LUYN2JXKKHFSVTASH344TBRGW | Mailing List |
| https://www.shielder.com/advisories/pgadmin-path-traversal_leads_to_unsafe_deserialization_and_rce/ | ExploitThird Party Advisory |
Track CVE-2024-2044 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2024-2044), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.