Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 97%

CVE-2026-7818: Vulnerability in pgadmin.org pgAdmin 4

0
High
VulnerabilityCVE-2026-7818cvecve-2026-7818
Published: 05/11/2026 (05/11/2026, 14:35:52 UTC)
Source: CVE Database V5
Vendor/Project: pgadmin.org
Product: 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

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
pgadmin-org/pgadmin4
pkg:github/pgadmin-org/pgadmin4
Affected versions
<9.15

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/11/2026, 15:51:48 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses