{"api_version":"1","generated_at":"2026-12-02T16:30:16+00:00","cve":"CVE-2026-136507","urls":{"html":"https://cve.report/CVE-2026-136507","api":"https://cve.report/api/cve/CVE-2026-136507.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-136507","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-136507"},"summary":{"title":"Connection string injection in SQLDriverConnect and the MSDTC XA open string","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.","state":"PUBLISHED","assigner":"PostgreSQL","published_at":"2026-11-25 23:17:23","updated_at":"2026-12-02 15:17:21"},"problem_types":["CWE-74","CWE-121","CWE-197","CWE-74 CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","CWE-197 CWE-197 Numeric Truncation Error","CWE-121 CWE-121 Stack-based Buffer Overflow"],"metrics":[{"version":"3.1","source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","type":"Secondary","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":"CNA","type":"CVSS","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":{"baseScore":8.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7638-f7xp-wv22","name":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7638-f7xp-wv22","refsource":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://odbc.postgresql.org/changelog/","name":"https://odbc.postgresql.org/changelog/","refsource":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-136507","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-136507","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"PostgreSQL","product":"psqlODBC","version":"affected 18.00.0006 custom","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"136507","cve":"CVE-2026-136507","epss":"0.004910000","percentile":"0.350980000","score_date":"2026-11-30","updated_at":"2026-12-01 00:02:52"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-136507","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","timestamp":"2026-12-02T15:13:35.782100Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-12-02T15:13:55.832Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"collectionURL":"https://odbc.postgresql.org/","defaultStatus":"unaffected","packageName":"psqlodbc","product":"psqlODBC","vendor":"PostgreSQL","versions":[{"lessThanOrEqual":"18.00.0006","status":"affected","version":"0","versionType":"custom"}]}],"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."}],"metrics":[{"cvssV3_1":{"baseScore":8.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-74","description":"CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","lang":"en","type":"CWE"},{"cweId":"CWE-197","description":"CWE-197 Numeric Truncation Error","lang":"en","type":"CWE"},{"cweId":"CWE-121","description":"CWE-121 Stack-based Buffer Overflow","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-25T22:25:49.140Z","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","shortName":"PostgreSQL"},"references":[{"name":"GHSA-7638-f7xp-wv22","tags":["vendor-advisory"],"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7638-f7xp-wv22"},{"name":"psqlODBC changelog","tags":["release-notes"],"url":"https://odbc.postgresql.org/changelog/"}],"title":"Connection string injection in SQLDriverConnect and the MSDTC XA open string"}},"cveMetadata":{"assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","assignerShortName":"PostgreSQL","cveId":"CVE-2026-136507","datePublished":"2026-11-25T22:25:49.140Z","dateReserved":"2026-11-24T20:17:10.904Z","dateUpdated":"2026-12-02T15:13:55.832Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-25 23:17:23","lastModifiedDate":"2026-12-02 15:17:21","problem_types":["CWE-74","CWE-121","CWE-197","CWE-74 CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","CWE-197 CWE-197 Numeric Truncation Error","CWE-121 CWE-121 Stack-based Buffer Overflow"],"metrics":{"cvssMetricV31":[{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","type":"Secondary","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":"2026-12-02T15:13:35.782100Z","id":"CVE-2026-136507","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"136507","Ordinal":"1","Title":"Connection string injection in SQLDriverConnect and the MSDTC XA","CVE":"CVE-2026-136507","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"136507","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Connection string injection in SQLDriverConnect and the MSDTC XA"}]}}}