Cloudanix VulnDB

CVE-2023-1907

High · 8.0

pgAdmin has Incorrect Default Permissions

CVSS

8.0

EPSS

0.4%

Published

Jan 9, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A timing flaw in the pgAdmin login system can let one user accidentally or deliberately end up inside another user's active session when several people sign in at once.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Full Compromise
Component
Application
Class
Race Condition
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Concurrent LDAP authentication requests in server-mode pgAdmin trigger a race condition that binds an incoming session to an unrelated authenticated user's context.

Why it matters to the business

Attackers can gain unauthorized access to other users' administrative sessions, exposing sensitive database management operations and data; the flaw's presence in a widely used tool increases breach risk across many environments.

How an attack unfolds

An attacker repeatedly initiates simultaneous LDAP login attempts against a pgAdmin server; when another legitimate user authenticates at the same moment, the race condition attaches the attacker's connection to the victim's established session. Storm-2755 Payroll Pirate Attacks have leveraged similar timing flaws to obtain unauthorized administrative access.

How to fix it

Upgrade pgAdmin to a version containing the race-condition fix for LDAP authentication; until patches are available, restrict LDAP logins or disable concurrent authentication where possible.

How to confirm the fix worked

Review release notes for LDAP session-handling corrections, re-test concurrent login scenarios in a lab environment, and confirm that each authentication attempt receives an isolated session token.

Typical attack path

  1. Identify pgAdmin instances configured for LDAP authentication in server mode
  2. Issue multiple rapid, concurrent authentication requests using attacker-controlled credentials
  3. Time requests to coincide with legitimate user logins
  4. Observe whether the resulting session is attached to the victim's context
  5. Perform administrative actions under the hijacked session

How to detect it

Search authentication and session logs for multiple near-simultaneous LDAP login events that result in the same session identifier being issued to different source IPs or users; correlate with known Storm-2755 activity patterns.

What your security team should do

  • Prioritize patching pgAdmin LDAP deployments given the high CVSS and observed actor interest
  • Monitor authentication logs for bursts of simultaneous login attempts from single sources
  • Consider temporary mitigation by limiting LDAP concurrency or switching to non-LDAP auth until fixed

The record

A vulnerability was found in pgadmin. Users logging into pgAdmin running in server mode using LDAP authentication may be attached to another user's session if multiple connection attempts occur simultaneously.

Affected packages

Ecosystem Package Introduced Fixed
PyPI pgadmin4 0 7.0
SUSE:Enterprise Storage 7.1 pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise Module for Python 3 15 SP6 pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise Server 15 SP3-LTSS pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise Server 15 SP4-LTSS pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise Server 15 SP5-LTSS pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 pgadmin4 0 4.30-150300.3.18.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP5 pgadmin4 0 4.30-150300.3.18.1
SUSE:Manager Proxy 4.3 pgadmin4 0 4.30-150300.3.18.1
SUSE:Manager Server 4.3 pgadmin4 0 4.30-150300.3.18.1
Ubuntu:16.04:LTS pgadmin3 0 No fix
Ubuntu:18.04:LTS pgadmin3 0 No fix
Ubuntu:20.04:LTS pgadmin3 0 No fix
Ubuntu:Pro:16.04:LTS pgadmin3 0 No fix
Ubuntu:Pro:18.04:LTS pgadmin3 0 No fix
Ubuntu:Pro:20.04:LTS pgadmin3 0 No fix

Related vulnerabilities