{"api_version":"1","generated_at":"2026-10-21T23:06:33+00:00","cve":"CVE-2025-12819","urls":{"html":"https://cve.report/CVE-2025-12819","api":"https://cve.report/api/cve/CVE-2025-12819.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-12819","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-12819"},"summary":{"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.","state":"PUBLISHED","assigner":"PostgreSQL","published_at":"2025-12-03 19:15:55","updated_at":"2026-10-18 18:10:00"},"problem_types":["CWE-426","CWE-426 Untrusted Search Path"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"8.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","type":"Secondary","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"CVSS","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.5,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://www.pgbouncer.org/changelog.html#pgbouncer-125x","name":"https://www.pgbouncer.org/changelog.html#pgbouncer-125x","refsource":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":["Release Notes"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00033.html","name":"https://lists.debian.org/debian-lts-announce/2025/12/msg00033.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-12819","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12819","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"PgBouncer","version":"affected 1.25.1 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[{"source":"CNA","title":"","value":"Remove search_path and any other security sensitive parameters from track_extra_parameters","time":"","lang":"en"},{"source":"CNA","title":"","value":"ensure auth_query uses fully-qualified object and operator names (e.g., pg_catalog.current_user instead of current_user)","time":"","lang":"en"}],"exploits":[],"credits":[{"source":"CNA","value":"Thanks to Jason Tsang of Snowflake Inc. for finding this issue.","lang":"en"}],"nvd_cpes":[{"cve_year":"2025","cve_id":"12819","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pgbouncer","cpe5":"pgbouncer","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2025","cve_id":"12819","cve":"CVE-2025-12819","epss":"0.003640000","percentile":"0.286990000","score_date":"2026-10-18","updated_at":"2026-10-19 00:13:07"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2025-12819","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","timestamp":"2025-12-03T19:11:14.559731Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2025-12-03T19:11:59.406Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"},{"providerMetadata":{"dateUpdated":"2025-12-27T16:04:17.588Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00033.html"}],"title":"CVE Program Container"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"PgBouncer","vendor":"n/a","versions":[{"lessThan":"1.25.1","status":"affected","version":"0","versionType":"semver"}]}],"configurations":[{"lang":"en","value":"track_extra_parameters includes search_path (non-default configuration) AND auth_user is set to a non-empty string (non-default configuration) AND auth_query is configured without fully-qualified object names (default configuration, the < operator is not schema qualified)"},{"lang":"en","value":"track_extra_parameters includes another security sensitive parameter (non-default configuration and extremely unlikely) and auth_user is set to a non-empty string (non-default configuration)"}],"credits":[{"lang":"en","type":"finder","value":"Thanks to Jason Tsang of Snowflake Inc. for finding this issue."}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"baseScore":7.5,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-426","description":"Untrusted Search Path","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2025-12-03T22:38:58.388Z","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","shortName":"PostgreSQL"},"references":[{"url":"https://www.pgbouncer.org/changelog.html#pgbouncer-125x"}],"title":"Untrusted search path in auth_query connection in PgBouncer","workarounds":[{"lang":"en","value":"Remove search_path and any other security sensitive parameters from track_extra_parameters"},{"lang":"en","value":"ensure auth_query uses fully-qualified object and operator names (e.g., pg_catalog.current_user instead of current_user)"}]}},"cveMetadata":{"assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","assignerShortName":"PostgreSQL","cveId":"CVE-2025-12819","datePublished":"2025-12-03T19:00:09.063Z","dateReserved":"2025-11-06T17:22:32.839Z","dateUpdated":"2025-12-27T16:04:17.588Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-12-03 19:15:55","lastModifiedDate":"2026-10-18 18:10:00","problem_types":["CWE-426","CWE-426 Untrusted Search Path"],"metrics":{"cvssMetricV31":[{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.6,"impactScore":5.9},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2025-12-03T19:11:14.559731Z","id":"CVE-2025-12819","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:pgbouncer:pgbouncer:*:*:*:*:*:*:*:*","versionEndExcluding":"1.25.1","matchCriteriaId":"CE71D84A-CE1D-4AE3-9618-49027227EEBE"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"12819","Ordinal":"1","Title":"Untrusted search path in auth_query connection in PgBouncer","CVE":"CVE-2025-12819","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"12819","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Untrusted search path in auth_query connection in PgBouncer"}]}}}