{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-136507 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls SQLDriverConnect, SQLConnectW or SQLBrowseConnectW. Many projects that include it are not exposed.","fix":"No fix has been published for CVE-2026-136507 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-136507 is a high-severity code injection vulnerability in PostgreSQL psqlODBC, published on 25 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-136507 and fix it if it is affected.\n\nWhat it is: CVE-2026-136507 is a high-severity code injection vulnerability in PostgreSQL psqlODBC, published on 25 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-136507 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls SQLDriverConnect, SQLConnectW or SQLBrowseConnectW. Many projects that include it are not exposed.\n\nAffected product: PostgreSQL psqlODBC. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n   If an affected version is present, also search the code for calls to SQLDriverConnect, SQLConnectW or SQLBrowseConnectW and report whether any exist.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-136507/ (Markdown: https://insights.sbomify.com/CVE-2026-136507/index.md)","id":"CVE-2026-136507","markdown":"https://insights.sbomify.com/CVE-2026-136507/index.md","name":"CVE-2026-136507","record":{"aliases":["GHSA-7638-f7xp-wv22","UBUNTU-CVE-2026-136507"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL ODBC driver","requires_auth":"none","requires_specific_call":true,"summary":"Applications passing user-controlled values into psqlODBC connection strings can be abused to inject connection keywords or overflow a stack buffer via MSDTC.","user_interaction":"not_required","vuln_class":"code_injection","vulnerable_functions":["SQLDriverConnect","SQLConnectW","SQLBrowseConnectW"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"PostgreSQL","component":null,"cpe":[],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"},{"id":"CWE-197","name":"Numeric Truncation Error"},{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Connection string injection in SQLDriverConnect and the MSDTC XA open string","id":"CVE-2026-136507","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":2,"n_vendor_status":0,"next":{"headline":"MSDTC connections drop the connection's TLS and channel binding settings","id":"CVE-2026-136508"},"nickname":null,"packages":[],"prev":{"headline":"SQL injection through names the driver puts into its own queries","id":"CVE-2026-136506"},"products":["psqlODBC"],"published":"2026-11-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-25","vendor_status":[],"vendors":["PostgreSQL"]},"summary":"Applications passing user-controlled values into psqlODBC connection strings can be abused to inject connection keywords or overflow a stack buffer via MSDTC.","url":"https://insights.sbomify.com/CVE-2026-136507/"}