CVE-2026-7818: Unsafe deserialization RCE in pgAdmin 4 FileBackedSessionManager
- Vendor
- Pgadmin
CVE-2026-7818 is an unsafe deserialization vulnerability in pgAdmin 4's FileBackedSessionManager. The session manager deserialized session-file contents using Python's standard object serialization mechanism before performing any integrity validation. As a result, any file placed in the sessions directory was deserialized unconditionally. Because Python deserialization of attacker-controlled data can invoke arbitrary code paths during object reconstruction, a crafted session payload could be used to execute operating-system commands under the pgAdmin process identity. The issue affects pgAdmin 4 versions before 9.15. The fix adds an HMAC-SHA-256 integrity value over the session body using SECRET_KEY and verifies it with a constant-time comparison before any deserialization occurs. The fix also ensures an empty SECRET_KEY causes an explicit error rather than relying on an assertion that could be removed under Python optimization.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can result in operating-system level remote code execution in the security context of the pgAdmin process. This can allow an attacker to run arbitrary commands, access or modify application data available to pgAdmin, tamper with session state, pivot to other resources reachable from the host, and potentially compromise the underlying server depending on the privileges assigned to the pgAdmin service account.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, prevent untrusted users or processes from writing to the sessions directory, review and correct filesystem permissions around session storage and DATA_DIR, and eliminate any auxiliary vulnerabilities or misconfigurations that could permit arbitrary file write or path traversal into the session storage location. Ensure SECRET_KEY is configured to a strong non-empty value. Reducing pgAdmin process privileges and isolating the service can limit post-exploitation impact, but these measures do not remove the underlying flaw.
Remediation
Patch, then assume compromise.
Upgrade pgAdmin 4 to version 9.15 or later. The corrected implementation prepends a 64-byte hexadecimal SHA-256 HMAC to the session body, validates it with SECRET_KEY before deserialization, and raises an error if SECRET_KEY is empty. Applying the vendor fix is the primary remediation.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-7818 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-7818 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-7818?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-7818.
- Is there a patch for CVE-2026-7818?
- Upgrade pgAdmin 4 to version 9.15 or later. The corrected implementation prepends a 64-byte hexadecimal SHA-256 HMAC to the session body, validates it with SECRET_KEY before deserialization, and raises an error if SECRET_KEY is empty.
- What products are affected by CVE-2026-7818?
- Pgadmin 4.
- How severe is CVE-2026-7818?
- CVE-2026-7818 has a CVSS v4 score of 7.3 (High) and an EPSS score of 0.13% (3rd percentile) as of Sep 25, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.