CVE-2026-7818: Vulnerability in pgadmin.org pgAdmin 4
Deserialization of untrusted data (CWE-502) in pgAdmin 4 FileBackedSessionManager. The 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. Fix 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. This issue affects pgAdmin 4: before 9.15.
AI Analysis
Technical Summary
This vulnerability in pgAdmin 4's FileBackedSessionManager allows unsafe deserialization of untrusted session-file contents. The session manager uses Python's standard serialization module to deserialize session files without first verifying their integrity via HMAC. An attacker with authenticated write access to the sessions directory can place a malicious serialized payload that leads to remote code execution under the pgAdmin process identity. The issue affects all versions before 9.15. The remediation involves prepending a 64-byte hex SHA-256 HMAC over the session data, computed with a SECRET_KEY, and verifying it before deserialization using a timing-safe comparison function.
Potential Impact
Successful exploitation allows an authenticated user with write access to the sessions directory to achieve remote code execution at the operating system level with the privileges of the pgAdmin process. This can lead to full compromise of the pgAdmin environment and potentially the underlying system depending on the process privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves verifying a SHA-256 HMAC over session data before deserialization to prevent exploitation. Until an official patch or update is available, restrict write access to the sessions directory to trusted users only to mitigate risk.
CVE-2026-7818: Vulnerability in pgadmin.org pgAdmin 4
Description
Deserialization of untrusted data (CWE-502) in pgAdmin 4 FileBackedSessionManager. The 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. Fix 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. This issue affects pgAdmin 4: before 9.15.
CVSS v3.1
Score 7.0high
Affected software
pkg:github/pgadmin-org/pgadmin4Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in pgAdmin 4's FileBackedSessionManager allows unsafe deserialization of untrusted session-file contents. The session manager uses Python's standard serialization module to deserialize session files without first verifying their integrity via HMAC. An attacker with authenticated write access to the sessions directory can place a malicious serialized payload that leads to remote code execution under the pgAdmin process identity. The issue affects all versions before 9.15. The remediation involves prepending a 64-byte hex SHA-256 HMAC over the session data, computed with a SECRET_KEY, and verifying it before deserialization using a timing-safe comparison function.
Potential Impact
Successful exploitation allows an authenticated user with write access to the sessions directory to achieve remote code execution at the operating system level with the privileges of the pgAdmin process. This can lead to full compromise of the pgAdmin environment and potentially the underlying system depending on the process privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves verifying a SHA-256 HMAC over session data before deserialization to prevent exploitation. Until an official patch or update is available, restrict write access to the sessions directory to trusted users only to mitigate risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-05-04T21:26:59.607Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a01f795cbff5d86102f2196
Added to database: 05/11/2026, 15:36:53 UTC
Last enriched: 05/11/2026, 15:51:48 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 193
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.