Untrusted search path in pgbouncer - CVE-2025-12819

 

Untrusted search path in pgbouncer - CVE-2025-12819

Published: December 6, 2025


Vulnerability identifier: #VU119232
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-12819
CWE-ID: CWE-426
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary SQL commands.

The vulnerability exists due to usage of an untrusted search path passed via the search_path parameter in the StartupMessage. A remote non-authenticated attacker can send specially crafted request during authentication and execute arbitrary SQL commands in the database. 


Affected software

pgbouncer
Fedora
pgbouncer

How to mitigate CVE-2025-12819

Install updates from vendor's website.

pgbouncer - update to 1.25.1
pgbouncer - addressed in versions 1.25.2-1.el9, 1.25.2-1.el10_1, 1.25.2-1.el10_2, 1.25.2-1.el10_3, 1.25.2-1.fc42, 1.25.2-1.fc43, 1.25.2-1.fc44

External References

Related Security Bulletins