CVE-2024-9014: OAuth2 client id and secret exposed through the web browser in pgAdmin 4
Exploitation: Reported · CVSS 9.9 Critical · Authenticated · Published 2024-09-23
Description
pgAdmin versions 8.11 and earlier are vulnerable to a security flaw in OAuth2 authentication. This vulnerability allows an attacker to potentially obtain the client ID and secret, leading to unauthorized access to user data.
Enclave's analysis
pgAdmin 4 versions before 8.12 can leak the OAuth2 client ID and secret through the web browser. The affected file is the login template, so the leak may be visible without a login. That isn't confirmed. No public exploit or exploitation has been found, and CISA doesn't list it. Upgrade to 8.12 or later. Rotate the OAuth client secret if OAuth2 was enabled.
Fix
Upgrade pgAdmin 4 (User Authentication module) to 8.12. No fixed version is listed for pgAdmin 4; follow the vendor advisory.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| pgAdmin 4 | 0 before 8.12 | Not listed |
| pgAdmin 4 (User Authentication module) | all versions before 8.12 (8.11 and earlier) | 8.12 |