{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-136502 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.","fix":"No fix has been published for CVE-2026-136502 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-136502 is a high-severity SQL 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-136502 and fix it if it is affected.\n\nWhat it is: CVE-2026-136502 is a high-severity SQL 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-136502 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software uses the vulnerable function or option. 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.\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-136502/ (Markdown: https://insights.sbomify.com/CVE-2026-136502/index.md)","id":"CVE-2026-136502","markdown":"https://insights.sbomify.com/CVE-2026-136502/index.md","name":"CVE-2026-136502","record":{"aliases":["GHSA-4392-6j85-5q2q","UBUNTU-CVE-2026-136502"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"PostgreSQL ODBC driver","requires_auth":"none","requires_specific_call":true,"summary":"Attackers controlling statement text or table names can inject SQL or redirect writes in applications using psqlODBC.","user_interaction":"not_required","vuln_class":"sql_injection","vulnerable_functions":[]},"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-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference"}],"description":"psqlODBC scans statement text itself to substitute parameters, translate ODBC escapes, join batched statements and rewrite queries for updatable cursors. Where it read the text differently from the server, text the driver took for data ran as SQL, or a positioned write went to another table:\n\n- An escape string constant written e'…' in lower case was not recognised as one, and '…' after a keyword ending in E, as in LIKE'…', was taken for one.\n- A } inside a quoted literal ended an ODBC {d …}, {t …}, {ts …} or {escape …} sequence.\n- Dollar-quote tags containing _ were not recognised, and an identifier starting with _ followed by $, such as _$$, was taken for the start of a dollar quote, so a parameter marker inside a literal was substituted.\n- A trailing -- comment in one statement of a batched parameter array swallowed the next statement.\n- Comments, literals longer than 255 bytes and escape strings were misread when the driver located the FROM and WHERE clauses of a query for an updatable cursor, and the text copied into the cursor's own queries could include SQL from inside a literal.\n- A table name containing $ was cut at the $, and a quoted table name starting with , or ; ended the table list, so positioned updates, inserts and deletes went to another table.\n- An integer parameter with an embedded NUL byte cut the query short.\n- /*/ was taken for a comment that opens and closes, while the server reads it as one that only opens.\n- ConnSettings was split at every semicolon, including one inside a quoted literal, so an application that puts an end user's value into a SET command there ran the rest of the value as SQL at connect time.\n\nAn end user who controls text the application puts into a statement, or a parameter value, can run SQL with the rights of the application's database role. A database user who can create a table with a crafted name can redirect another user's positioned writes to a table of their choosing.\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":"SQL injection and redirected writes because the driver reads SQL text differently from the server","id":"CVE-2026-136502","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":2,"n_vendor_status":0,"next":{"headline":"Use after free, double free and out-of-bounds writes in result and transaction clean-up","id":"CVE-2026-136503"},"nickname":null,"packages":[],"prev":{"headline":"Positioned writes go to another user's table through name and case matching","id":"CVE-2026-136501"},"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 controlling statement text or table names can inject SQL or redirect writes in applications using psqlODBC.","url":"https://insights.sbomify.com/CVE-2026-136502/"}