Skip to content

pgAdmin 4

pgAdmin 4: Unsafe deserialization (CWE-502) in file-backed session manager leads to remote code execution

CVE-2026-7818Published 11 May 2026, 14:35 UTC

Real-world risk

1.9/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.3

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from PostgreSQL)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
pgAdmin 4Common< 9.159.15

What to do

Update to a fixed version: 9.15.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededLowA real low-privileged accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.1% chance of exploitation in 30 days (percentile 3), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.225
  2. Threat T1: Nothing known0.850
  3. 10 × impact 1 × prerequisites 0.225 × threat 0.851.912
  4. Rounded to one decimal between 0.1 and 101.9

How the score works

Exploitation and evidence timeline

  1. 11 May 2026 Published
  2. 3 Dec 2026 Risk 1.9 (cvss fallback)

Weakness

CWE-502

References

Get alerts for pgAdmin 4

Free email or text alerts when a vulnerability in pgAdmin 4 reaches risk 8 or higher. Nothing else.

CVE-2026-7818: pgAdmin 4: Unsafe deserialization (CWE-502) in file-backed session manager leads to remote code execution · CVE Feed