# CVE-2026-136514: Another database user can crash applications by changing a table they own

> A database user owning a table or view another user's psqlODBC application reads can crash the application; users of psqlODBC should care.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** Yes (`SQLTables()`, `SQLTablesW()`)
- **Fix available:** No
- **Published:** 25 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** GHSA-hcmw-j9px-6v23, UBUNTU-CVE-2026-136514

## What is CVE-2026-136514?

CVE-2026-136514 is a medium-severity use after free 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.

### Official description

psqlODBC assumed that a table it reads keeps the definition it had when the statement was described or parsed. A database user who owns a table or view another user's application reads can crash that application, with an honest server and default options, in these cases:

- Columns dropped or added in another session while the application updates rows through an updatable cursor, or describes the columns with Parse=1.
- A view whose ctid is NULL, read through an updatable cursor, which writes past the row cache, and a view with a volatile filter scrolled backward with UseDeclareFetch=1.
- Rows added through an updatable cursor to a table with child tables or partitions.
- A column whose type is named lo, written with data-at-execution parameters.
- A DROP TABLE or ALTER TABLE on the connection while another statement still uses the table's column information.
- NULL key columns in rows the driver re-reads for an updatable cursor.
- A function called with more output parameters than its result has columns.
- SQLTables() and SQLTablesW() dereferenced NULL when called with empty strings for the catalog, schema and table names together with a NULL TableType, which kills the process that loaded the driver and every session it serves.

The demonstrated results are crashes; one case writes past a heap buffer, but code execution has not been demonstrated.

Versions up to and including psqlODBC 18.00.0006 are affected.

Weakness: CWE-787 (Out-of-bounds Write), CWE-476 (NULL Pointer Dereference), CWE-416 (Use After Free), CWE-125 (Out-of-bounds Read)

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

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


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

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

## Is CVE-2026-136514 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2026-136514 is a medium-severity use after free 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.
Exploitation: There is no known exploitation of CVE-2026-136514 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software calls SQLTables() or SQLTablesW(). 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() or SQLTablesW() 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-136514/ (Markdown: https://insights.sbomify.com/CVE-2026-136514/index.md)
```

## Sources

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

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