High

pgAdmin 4 has deserialization of untrusted data in its FileBackedSessionManager

  • Disclosed: 11.05.2026
  • Updated: 11.10.2026 15:17

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) pgadmin4 < 9.15 9.15

References

CVSS score 7/10
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-502
Platform
Python (PyPI)
Package
pgadmin4
Disclosed
11.05.2026
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-2865 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-4rhg-h8f2-v4jm - CC BY 4.0

Vulnerability history: pgadmin4

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (28) in the archive
Total entries
28
First → latest
03.2022 05.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 6
  • High 14
  • Medium 8

Disclosures per year

  1. 2022: 2
  2. 2023: 3
  3. 2024: 5
  4. 2025: 9
  5. 2026: 9
Severity:
  1. High · 8.8 CVE-2026-7815 < 9.15 9.15
  2. High · 8.1 CVE-2026-7819 < 9.15 9.15
  3. pgAdmin 4 has deserialization of untrusted data in its FileBackedSessionManager this entry
    High · 7.0 CVE-2026-7818 < 9.15 9.15
  4. Critical · 9.1 CVE-2025-13780 < 9.11 9.11
  5. High · 7.5 CVE-2025-12764 < 9.10 9.10
  6. Critical · 9.9 CVE-2025-2945 < 9.2 9.2
  7. High · 8.0 CVE-2023-1907 < 7.0 7.0
  8. High · 8.6 CVE-2024-9014 < 8.12 8.12
  9. High · 7.4 CVE-2024-3116 < 8.5 8.5
  10. High · 8.8 CVE-2022-4223 < 6.17 6.17

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.