{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-136500",
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "state": "PUBLISHED",
        "assignerShortName": "PostgreSQL",
        "dateReserved": "2026-11-24T20:17:10.903Z",
        "datePublished": "2026-11-25T22:25:44.748Z",
        "dateUpdated": "2026-11-25T22:25:44.748Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
                "shortName": "PostgreSQL",
                "dateUpdated": "2026-11-25T22:25:44.748Z"
            },
            "title": "SQL injection with BIG5 aliases and the JOHAB, EUC_TW, EUC_CN and EUC_KR client encodings",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "To escape a bound parameter, or a name passed to a catalog function, psqlODBC has to know where each multibyte character of the client encoding ends. It treated a client encoding named by an alias the server accepts, such as WIN950, Windows950 or big-5 for BIG5, as single-byte, and it accepted too narrow a range of lead bytes for JOHAB, EUC_TW, EUC_CN and EUC_KR. A quote byte that the server reads as part of such a character was then not doubled, or a quote the server reads on its own was taken for part of a character, and the literal ended early.\n\nAn end user who controls one bound character parameter, or a name the application passes to a catalog function such as SQLTables(), can run SQL with the rights of the application's database role. This requires a connection that is not in UTF-8: the ANSI driver, or the ANSI entry points, with one of these client encodings. For bound parameters the driver must also be substituting parameters itself, as it does with UseServerSidePrepare=0 or a cursor type other than forward-only.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
                }
            ],
            "affected": [
                {
                    "vendor": "PostgreSQL",
                    "product": "psqlODBC",
                    "collectionURL": "https://odbc.postgresql.org/",
                    "packageName": "psqlodbc",
                    "defaultStatus": "unaffected",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThanOrEqual": "18.00.0006",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-89",
                            "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
                            "type": "CWE"
                        },
                        {
                            "lang": "en",
                            "cweId": "CWE-173",
                            "description": "CWE-173 Improper Handling of Alternate Encoding",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "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"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-2rjm-67gc-54r4",
                    "name": "GHSA-2rjm-67gc-54r4",
                    "tags": [
                        "vendor-advisory"
                    ]
                },
                {
                    "url": "https://odbc.postgresql.org/changelog/",
                    "name": "psqlODBC changelog",
                    "tags": [
                        "release-notes"
                    ]
                }
            ]
        }
    }
}