{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-136515 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls SQLExecDirect(). Many projects that include it are not exposed.","fix":"No fix has been published for CVE-2026-136515 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-136515 is a high-severity memory corruption vulnerability in PostgreSQL psqlODBC, published on 25 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-136515 and fix it if it is affected.\n\nWhat it is: CVE-2026-136515 is a high-severity memory corruption vulnerability in PostgreSQL psqlODBC, published on 25 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-136515 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls SQLExecDirect(). 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 SQLExecDirect() 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-136515/ (Markdown: https://insights.sbomify.com/CVE-2026-136515/index.md)","id":"CVE-2026-136515","markdown":"https://insights.sbomify.com/CVE-2026-136515/index.md","name":"CVE-2026-136515","record":{"aliases":["GHSA-pw7w-x92p-r3q2","UBUNTU-CVE-2026-136515"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL ODBC driver","requires_auth":"low_privilege","requires_specific_call":true,"summary":"Attackers supplying crafted SQL statements to applications using psqlODBC can corrupt heap memory and crash the application.","user_interaction":"not_required","vuln_class":"memory_corruption","vulnerable_functions":["SQLExecDirect()"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"PostgreSQL","component":null,"cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-674","name":"Uncontrolled Recursion"},{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"psqlODBC rewrites statement text for keyset-driven cursors and ODBC escapes using positions it found in the text. These positions could lie outside the text or describe another statement:\n\n- After SQLExecDirect() failed on a statement handle, the FROM and WHERE positions of the failed statement were applied to the next, shorter statement on that handle.\n- The parser could record a FROM position with no text after it, and the rewrite then copied a negative length.\n- An {fn …} escape whose arguments contain FOR UPDATE, ; or INTO … FROM made the driver remove a cursor prefix from the wrong buffer.\n- {fn CONVERT(?, …)} with an output parameter produced a negative argument length.\n- An unclosed {fn …} escape made the driver read past the statement, and a few thousand nested ones exhausted the stack.\n- Translating @@identity in long statement text read an uninitialised pointer, and {? = call …} with nothing bound for the return value dereferenced NULL.\n\nWhoever supplies the text of a statement that an application opens on a keyset-driven or dynamic cursor with a concurrency other than read-only, or calls with an output parameter, can corrupt the application's heap and end it. That includes the users of query tools, report builders and other applications that run SQL their users type. Code execution has not been demonstrated.\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":"Memory corruption and crashes when the driver rewrites statements for cursors and escapes","id":"CVE-2026-136515","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":2,"n_vendor_status":0,"next":{"headline":"The UsersWP – Front-end login form, User Registration, User Profile \u0026 Members Directory plugin for WP plugin for WordPress is vulnerable to","id":"CVE-2026-136517"},"nickname":null,"packages":[],"prev":{"headline":"Another database user can crash applications by changing a table they own","id":"CVE-2026-136514"},"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":"Attackers supplying crafted SQL statements to applications using psqlODBC can corrupt heap memory and crash the application.","url":"https://insights.sbomify.com/CVE-2026-136515/"}