Untrusted search path in auth_query connection in PgBouncer (CVE-2025-12819)
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.
AI Analysis
Technical Summary
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.
Untrusted search path in auth_query connection in PgBouncer (CVE-2025-12819)
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
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.