Skip to main content
EPSS 0.4%top 70%

Untrusted search path in auth_query connection in PgBouncer (CVE-2025-12819)

0
High
Published: 12/06/2025 (12/06/2025, 11:44:20 UTC)
Source: GCVE Database
Product: pgbouncer

Description

Untrusted search path in auth_query connection handler in PgBouncer before 1.25.1 allows an unauthenticated attacker to execute arbitrary SQL during authentication via a malicious search_path parameter in the StartupMessage.

Affected software

Bitnamimore threats →ghsa
pgbouncer
pkg:bitnami/pgbouncer
Affected versions
<1.25.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 13:28:21 UTC

Technical Analysis

CVE-2025-12819 describes an untrusted search path vulnerability in the auth_query connection handler of PgBouncer before version 1.25.1. An attacker who is not authenticated can exploit this by crafting a malicious search_path parameter in the StartupMessage, leading to arbitrary SQL execution during the authentication process. This vulnerability affects PgBouncer versions earlier than 1.25.1 and has been assigned a high severity rating by the database source. A patch is available in version 1.25.1.

Potential Impact

An unauthenticated attacker can execute arbitrary SQL commands during the authentication phase, potentially compromising the database or bypassing authentication controls. This could lead to unauthorized data access or manipulation.

Mitigation Recommendations

Upgrade PgBouncer to version 1.25.1 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BIT-pgbouncer-2025-12819
Osv Schema Version
1.6.2
Aliases
["CVE-2025-12819"]
Ecosystems
["Bitnami"]
Database Specific Severity
High
State
PUBLISHED

Threat ID: 6aa005e2acd9273b49ab60d3

Added to database: 09/08/2026, 12:56:02 UTC

Last enriched: 09/08/2026, 13:28:21 UTC

Last updated: 09/10/2026, 22:05:25 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses