{"affected":[{"defaultStatus":"unaffected","ecosystem":"https://odbc.postgresql.org/","packageName":"psqlodbc","product":"psqlODBC","source":"CNA: PostgreSQL","vendor":"PostgreSQL","versions":[{"lessThanOrEqual":"18.00.0006","status":"affected","version":"0","versionType":"custom"}]}],"cveId":"CVE-2026-136507","cwes":["CWE-74","CWE-197","CWE-121"],"description":"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.1,"severity":"high","source":"CNA: PostgreSQL","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"score":8.1,"severity":"high","source":"NVD: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1795648643830,"publishedAt":1795645549140,"references":[{"source":"CNA: PostgreSQL","tags":["vendor-advisory"],"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7638-f7xp-wv22"},{"source":"CNA: PostgreSQL","tags":["release-notes"],"url":"https://odbc.postgresql.org/changelog/"},{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7638-f7xp-wv22"},{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"url":"https://odbc.postgresql.org/changelog/"}],"remediation":[],"revision":"20d0ae022f0cca7a79f9f56e46970d60791e5b07e7297e4322b8b9113beac12b","sources":[{"modifiedAt":1795645549140,"name":"CNA: PostgreSQL","retrievedAt":1795648132545,"url":"https://www.cve.org/CVERecord?id=CVE-2026-136507"},{"modifiedAt":1795648643830,"name":"NVD","retrievedAt":1795652270703,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-136507"}],"ssvc":null,"status":"published","title":"Connection string injection in SQLDriverConnect and the MSDTC XA open string","updatedAt":1795652270703}