CVE-2026-116246

pgAdmin 4: Server passwords are left in pgAdmin's process environment

State
Published
Severity
7.0 High
Published
Oct 30, 2026
Updated
Oct 30, 2026
Reserved
Oct 25, 2026

Read the record on cve.org

Description

To pass a server's password to psql and to the utilities pgAdmin 4 runs as background processes, the server manager wrote it into pgAdmin's own process environment: as PGPASSWORD for the PSQL tool, and under a per-process variable for a utility. Nothing removed it afterwards. pgAdmin's environment is shared by every user's requests and copied into every process it starts, so in server mode another user's later PSQL session or utility inherited the password, and libpq used PGPASSWORD for any connection made without a password of its own, letting one user connect with another user's saved password.

The fix puts the password only into the environment built for the process that needs it and starts psql with a copy of pgAdmin's environment instead of the environment itself.

This issue affects pgAdmin 4: before 9.19.

Scores

CVSSScoreVectorSource
4.07.0 HighCVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:L/SA:NPostgreSQL
3.16.5 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:NPostgreSQL

Weaknesses

  • CWE-214 Invocation of Process Using Visible Sensitive Information
  • CWE-526 Cleartext Storage of Sensitive Information in an Environment Variable

Affected Products

ProductVersions
pgAdmin 4pgadmin.org
  • before 9.19Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.