{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2025-12819",
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "state": "PUBLISHED",
        "assignerShortName": "PostgreSQL",
        "dateReserved": "2025-11-06T17:22:32.839Z",
        "datePublished": "2025-12-03T19:00:09.063Z",
        "dateUpdated": "2025-12-27T16:04:17.588Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
                "shortName": "PostgreSQL",
                "dateUpdated": "2025-12-03T22:38:58.388Z"
            },
            "title": "Untrusted search path in auth_query connection in PgBouncer",
            "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."
                }
            ],
            "affected": [
                {
                    "defaultStatus": "unaffected",
                    "product": "PgBouncer",
                    "vendor": "n/a",
                    "versions": [
                        {
                            "lessThan": "1.25.1",
                            "version": "0",
                            "versionType": "semver",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-426",
                            "type": "CWE",
                            "description": "Untrusted Search Path"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://www.pgbouncer.org/changelog.html#pgbouncer-125x"
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "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"
                    }
                }
            ],
            "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)"
                }
            ],
            "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)"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Thanks to Jason Tsang of Snowflake Inc. for finding this issue.",
                    "type": "finder"
                }
            ]
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-12-03T19:11:14.559731Z",
                                "id": "CVE-2025-12819",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-12-03T19:11:59.406Z"
                }
            },
            {
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2025/12/msg00033.html"
                    }
                ],
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2025-12-27T16:04:17.588Z"
                }
            }
        ]
    }
}