Skip to main content
Mallory
HighVulnerability

CVE-2026-7818: Unsafe deserialization RCE in pgAdmin 4 FileBackedSessionManager

Published May 11, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.3High · v4
EPSS0.13%3rd percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Pgadmin
IdentifiersCVE-2026-7818CWE-502 · Deserialization of Untrusted Data

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
PgadminPgadmin 4application
FAQ

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.
Activity feed

Recent activity

2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.