# CVE-2026-136500: SQL injection with BIG5 aliases and the JOHAB, EUC_TW, EUC_CN and EUC_KR client encodings

> Applications passing one bound parameter or catalog name to psqlODBC with certain client encodings can be exploited for SQL injection.

- **Severity:** High 8.1 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** Yes (`SQLTables()`)
- **Fix available:** No
- **Published:** 25 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** GHSA-2rjm-67gc-54r4, UBUNTU-CVE-2026-136500

## What is CVE-2026-136500?

CVE-2026-136500 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.

### Official description

To escape a bound parameter, or a name passed to a catalog function, psqlODBC has to know where each multibyte character of the client encoding ends. It treated a client encoding named by an alias the server accepts, such as WIN950, Windows950 or big-5 for BIG5, as single-byte, and it accepted too narrow a range of lead bytes for JOHAB, EUC_TW, EUC_CN and EUC_KR. A quote byte that the server reads as part of such a character was then not doubled, or a quote the server reads on its own was taken for part of a character, and the literal ended early.

An end user who controls one bound character parameter, or a name the application passes to a catalog function such as SQLTables(), can run SQL with the rights of the application's database role. This requires a connection that is not in UTF-8: the ANSI driver, or the ANSI entry points, with one of these client encodings. For bound parameters the driver must also be substituting parameters itself, as it does with UseServerSidePrepare=0 or a cursor type other than forward-only.

Versions up to and including psqlODBC 18.00.0006 are affected.

Weakness: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), CWE-173 (Improper Handling of Alternate Encoding)

## Which versions are affected by CVE-2026-136500?

An affected version is only exploitable if your software calls SQLTables(). Many projects that include it are not exposed.


## How do I fix CVE-2026-136500?

No fix has been published for CVE-2026-136500 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-136500 being exploited?

There is no known exploitation of CVE-2026-136500 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-136500 and fix it if it is affected.

What it is: CVE-2026-136500 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.
Exploitation: There is no known exploitation of CVE-2026-136500 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software calls SQLTables(). Many projects that include it are not exposed.

Affected product: PostgreSQL psqlODBC. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. 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.
   If an affected version is present, also search the code for calls to SQLTables() and report whether any exist.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-136500/ (Markdown: https://insights.sbomify.com/CVE-2026-136500/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-136500
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-136500
- OSV: https://osv.dev/vulnerability/CVE-2026-136500

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-136500/
Summaries are generated and may contain mistakes; the official description above is the record.
