{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-136507",
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "state": "PUBLISHED",
        "assignerShortName": "PostgreSQL",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "datePublished": "2026-11-25T22:25:49.140Z",
        "dateUpdated": "2026-11-25T22:25:49.140Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
                "shortName": "PostgreSQL",
                "dateUpdated": "2026-11-25T22:25:49.140Z"
            },
            "title": "Connection string injection in SQLDriverConnect and the MSDTC XA open string",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "psqlODBC parsed and built connection strings in ways that let a value end early:\n\n- In a braced value, such as PWD={…}, a trailing byte 0x7d of a GBK, Big5 or SJIS character was taken for the closing brace.\n- A braced value that ended right after an escaped }} was not reported as unterminated, and its contents were parsed as further keywords.\n- SQLConnectW(), SQLDriverConnectW() and SQLBrowseConnectW() cut a connection string whose UTF-8 form is longer than 32767 bytes, which changes how the rest of it is parsed.\n- On Windows with MSDTC, the password and user name were put into the XA open string without escaping, and the XA library copied each item of that string into a 64-byte stack buffer.\n- Percent-encoding a long password wrote one byte past a 4096-byte stack buffer.\n\nAn end user who supplies a password, or another value the application puts into the connection string, can set other connection keywords, for example to connect the application to a server of their choosing. The MSDTC case can also overflow a stack buffer in the process that loads the XA library.\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-74",
                            "description": "CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')",
                            "type": "CWE"
                        },
                        {
                            "lang": "en",
                            "cweId": "CWE-197",
                            "description": "CWE-197 Numeric Truncation Error",
                            "type": "CWE"
                        },
                        {
                            "lang": "en",
                            "cweId": "CWE-121",
                            "description": "CWE-121 Stack-based Buffer Overflow",
                            "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-7638-f7xp-wv22",
                    "name": "GHSA-7638-f7xp-wv22",
                    "tags": [
                        "vendor-advisory"
                    ]
                },
                {
                    "url": "https://odbc.postgresql.org/changelog/",
                    "name": "psqlODBC changelog",
                    "tags": [
                        "release-notes"
                    ]
                }
            ]
        }
    }
}