{"id":"CVE-2026-7818","published":"2026-05-11T14:35:52Z","modified":"2026-05-11T16:07:11Z","title":"pgAdmin 4: Unsafe deserialization (CWE-502) in file-backed session manager leads to remote code execution","vendor":"pgadmin.org","product":"pgAdmin 4","tier":"tail","description":{"text":"Deserialization of untrusted data (CWE-502) in pgAdmin 4 FileBackedSessionManager.\n\nThe session manager performed unsafe deserialization of session-file contents (using Python's standard object-serialization module) before performing any HMAC integrity check. Any file dropped into the sessions directory was deserialized unconditionally. An authenticated user with write access to the sessions directory (whether by misconfiguration or in combination with another path-traversal flaw) could plant a crafted serialized payload to achieve operating-system level remote code execution under the pgAdmin process identity.\n\nFix prepends a 64-byte hex SHA-256 HMAC over the session body, computed with SECRET_KEY, and verifies it via hmac.compare_digest before any deserialization. The check is raised (rather than asserted) on empty SECRET_KEY so it is not stripped under -O.\n\nThis issue affects pgAdmin 4: before 9.15.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00131,"percentile":0.02755,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/pgadmin-org/pgadmin4/issues/9901","tags":["issue-tracking"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":0.55},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"pgadmin-org","affectedVersions":[{"vendor":"pgadmin.org","product":"pgAdmin 4","versions":["< 9.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-11T16:07:07.654126Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pgadmin4","vulnerableRanges":["<9.15"],"patched":["9.15"],"from":["GHSA-4rhg-h8f2-v4jm","PYSEC-2026-2865"],"provenance":"source"}],"summary":{"text":"pgAdmin 4's FileBackedSessionManager deserializes session-file contents with Python's standard object-serialization module before any integrity check, so any file placed in the sessions directory is unconditionally deserialized. An attacker with write access to that directory, whether through misconfiguration or by chaining another path-traversal flaw, and who is authenticated and has local access (the attack vector is local, with high complexity and low privileges required), can plant a crafted payload to execute code as the pgAdmin process user.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:37Z"},"euvd":{"id":"EUVD-2026-29086","exploited":false,"provenance":"source"}}