{"id":"CVE-2025-12819","aliases":["ALPINE-CVE-2025-12819","AZL-71249","AZL-71438","BIT-pgbouncer-2025-12819","DEBIAN-CVE-2025-12819","DLA-4422-1","EUVD-2025-201089","GHSA-qpxx-2fwx-f5qj","UBUNTU-CVE-2025-12819"],"status":"published","title":"Untrusted search path in auth_query connection in 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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00387,"percentile":0.33241,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-426"],"published":"2025-12-03T19:00:09Z","modified":"2026-11-09T12:49:25Z","fixes":[{"ecosystem":"Alpine:v3.23","package":"pgbouncer","fixed_in":["1.25.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"pgbouncer","fixed_in":["1.25.1-r0"],"sources":["osv"]},{"ecosystem":"Azure Linux:3","package":"pgbouncer","fixed_in":["1.25.1-1"],"sources":["osv"]},{"ecosystem":"Azure Linux:2","package":"pgbouncer","fixed_in":["1.25.1-1"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"pgbouncer","fixed_in":["1.25.1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"pgbouncer","fixed_in":["1.18.0-1+deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"pgbouncer","fixed_in":["1.24.1-1+deb13u1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"pgbouncer","fixed_in":["1.25.1-1"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"pgbouncer","fixed_in":["1.15.0-1+deb11u2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.23","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.1-r0"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.1-1"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.1-1"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"pgbouncer","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.18.0-1+deb12u1"}]}],"versions":["1.18.0-1"]},{"source":"osv","ecosystem":"Debian:13","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.24.1-1+deb13u1"}]}],"versions":["1.24.1-1"]},{"source":"osv","ecosystem":"Debian:14","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.1-1"}]}],"versions":["1.24.1-1","1.25.0-1","1.25.0-2"]},{"source":"osv","ecosystem":"Debian:11","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.15.0-1+deb11u2"}]}],"versions":["1.15.0-1","1.15.0-1+deb11u1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.5-1","1.6.1-1","1.7-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.2-3build1","1.7.2-65-g2b8e6cf-1","1.8.1-1","1.8.1-1build1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-1","1.10.0-1build1","1.11.0-1","1.12.0-2","1.12.0-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.20.0-1","1.21.0-1","1.22.0-1","1.22.0-1build1","1.22.0-1build3","1.22.0-1build4"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"pgbouncer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.24.0-3","1.24.1-1"]}],"products":[{"vendor":"pgbouncer","product":"pgbouncer"}],"references":[{"url":"https://www.pgbouncer.org/changelog.html#pgbouncer-125x","tags":["Release Notes","article","advisory","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00033.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12819","tags":["web"]},{"url":"https://www.pgbouncer.org/changelog.html#pgbouncer-124x"},{"url":"https://github.com/advisories/GHSA-qpxx-2fwx-f5qj"},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-12819","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-12819","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-12819","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-12819","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-12819","title":"Untrusted search path in auth_query connection in 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.","status":"published","published":"2025-12-03T19:00:09.063Z","modified":"2025-12-27T16:04:17.588Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T14:32:41.743125Z"}],"euvd":[{"id":"EUVD-2025-201089","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.","status":"published","published":"2025-12-03T19:00:09Z","modified":"2025-12-27T16:04:17Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T19:49:00.939401Z"}],"ghsa":[{"id":"GHSA-qpxx-2fwx-f5qj","title":"Untrusted search path in auth_query connection handler in PgBouncer before 1.25.0 allows an...","description":"Untrusted search path in auth_query connection handler in PgBouncer before 1.25.0 allows an unauthenticated attacker to execute arbitrary SQL during authentication via a malicious search_path parameter in the StartupMessage.","status":"published","published":"2025-12-03T21:31:04Z","modified":"2025-12-27T18:30:23Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T15:05:22.620437Z"}],"nvd":[{"id":"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.","status":"published","published":"2025-12-03T19:15:55.227Z","modified":"2026-10-18T18:10:00.1Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T14:11:47.746175Z"}],"osv":[{"id":"ALPINE-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.","status":"published","published":"2025-12-03T19:15:55.227Z","modified":"2026-11-03T06:32:51.670921747Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T07:16:46.202932Z"},{"id":"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.","status":"published","published":"2025-12-03T19:15:55.227Z","modified":"2026-04-10T05:21:01.253881Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:46.024537Z"},{"id":"DEBIAN-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.","status":"published","published":"2025-12-03T19:15:55.227Z","modified":"2026-10-23T17:47:23.111526445Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:45.102284Z"},{"id":"UBUNTU-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.","status":"published","published":"2025-12-03T19:15:00Z","modified":"2026-11-09T12:49:25.529854081Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-09T13:27:42.046613Z"},{"id":"AZL-71249","title":"CVE-2025-12819 affecting package pgbouncer for versions less than 1.25.1-1","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.","status":"published","published":"2025-12-03T19:15:55Z","modified":"2026-04-21T04:55:34.052652Z","updated_at":"2026-11-02T15:28:08.907584Z"},{"id":"AZL-71438","title":"CVE-2025-12819 affecting package pgbouncer for versions less than 1.25.1-1","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.","status":"published","published":"2025-12-03T19:15:55Z","modified":"2026-04-21T04:36:35.319437Z","updated_at":"2026-11-02T15:28:09.201912Z"},{"id":"BIT-pgbouncer-2025-12819","title":"Untrusted search path in auth_query connection in 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.","status":"published","published":"2025-12-06T11:44:20.875Z","modified":"2026-09-10T16:01:44.901360328Z","updated_at":"2026-11-02T15:28:34.343258Z"},{"id":"DLA-4422-1","title":"pgbouncer - security update","status":"published","published":"2025-12-27T00:00:00Z","modified":"2025-12-27T14:29:52.635266Z","updated_at":"2026-11-02T15:46:12.7027Z"}]}}
