{"id":"CVE-2024-2044","published":"2024-03-07T20:48:10Z","modified":"2025-02-13T17:32:31Z","title":"Unsafe Deserialisation and Remote Code Execution by an Authenticated user in pgAdmin 4","vendor":"pgadmin.org","product":"pgAdmin 4","tier":"core","eol":null,"affectedVersions":[{"vendor":"pgadmin.org","product":"pgAdmin 4","versions":["< 8.4"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":null,"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.79465,"percentile":0.99601,"date":"2026-10-29","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-31","name":"Path Traversal: 'dir....filename'"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/7258","tags":["issue-tracking"]},{"url":"https://www.shielder.com/advisories/pgadmin-path-traversal_leads_to_unsafe_deserialization_and_rce/","tags":["mitigation"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LUYN2JXKKHFSVTASH344TBRGWDH64XQV/","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"PyPI","package":"pgAdmin4","vulnerableRanges":["<8.4"],"patched":["8.4"],"from":["GHSA-rj98-crf4-g69w","PYSEC-2026-453"],"provenance":"source"}],"advisories":[{"id":"GHSA-rj98-crf4-g69w","url":"https://github.com/advisories/GHSA-rj98-crf4-g69w","severity":"CRITICAL","ecosystem":"PyPI","package":"pgAdmin4","vulnerableRanges":["<8.4"],"patched":["8.4"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-1004","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1004","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-09-13","earliestUrl":"https://github.com/hanzzly/CVE-2024-2044","repos":[{"name":"hanzzly/CVE-2024-2044","url":"https://github.com/hanzzly/CVE-2024-2044","stars":1,"created":"2026-09-13"}]},"metasploit":[{"name":"pgAdmin Session Deserialization RCE","module":"exploit/multi/http/pgadmin_session_deserialization","type":"exploit","disclosureDate":"2024-03-04","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/pgadmin_session_deserialization.rb"}],"first":{"date":"2024-03-04","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/pgadmin_session_deserialization.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-03-04","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2026-09-13","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/pgadmin_session_deserialization.rb","provenance":"source"},{"date":"2024-03-07","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-2044","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":31.9,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.92,"detail":"percentile 0.9960"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.93,"detail":"base score 9.9"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2024-2044","published":"2024-03-07","fixed":"8.4","kev":false},{"cve":"CVE-2024-4216","published":"2024-05-02","fixed":"8.6","kev":false,"link":{"from":"CVE-2024-2044","to":"CVE-2024-4216","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pgAdmin4","fromFixed":"8.4","toFixed":"8.6","daysApart":56}]}}],"package":"PyPI:pgAdmin4"}}