CVE-2025-12819 Details
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.
A vulnerability exists in PgBouncer versions prior to 1.25.1, specifically within the auth_query connection handler. This vulnerability allows an unauthenticated attacker to execute arbitrary SQL during the authentication process by injecting a malicious search_path parameter into the StartupMessage. The issue arises from an untrusted search path that PgBouncer does not properly validate before executing SQL commands.
Users can upgrade to PgBouncer version 1.25.1 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/12/msg00033.html | CVE | |
| https://www.pgbouncer.org/changelog.html#pgbouncer-125x | PostgreSQL | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-426 | Untrusted Search Path | PostgreSQL |
Affected Products
| Product | Versions |
|---|---|
| pgbouncer pgbouncer | < 1.25.1 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 27, 2025 | CVE Modified | CVE |
| Dec 5, 2025 | Initial Analysis | [email protected] |
| Dec 3, 2025 | CVE Modified | PostgreSQL |
| Dec 3, 2025 | New CVE Received | PostgreSQL |