CVE-2026-120058: psqlODBC - Out of Bounds Read/Write
- Cve: CVE-2026-120058
- Name: psqlODBC - Out of Bounds Read/Write
- Description: psqlODBC sizes its row cache from the column count of a cursor's first result, but recomputes the column count from each later FETCH reply without checking that it matches. A server not trusted under current SSL settings can answer a later FETCH with more columns and make the driver write tuple records past the end of the heap allocation. A keyset reply with fewer columns than the key fields also underflows the unsigned field count. This is reachable with UseDeclareFetch enabled. Versions before psqlODBC 18.00.0006 are affected.
- Impact: An attacker controlling the server can cause memory corruption, potentially leading to code execution or denial of service.
- Remediation: Update to version 18.00.0006 or later.
- Vulnerability type: out_of_bounds_rw
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00255
- Epss percentile: 0.17088
- Assignee: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
- Published at: 2026-11-02T19:18:02Z
- Age in days: 22
- Modified at: 2026-11-02T20:17:38Z
- References total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-120058
- Nvd status: awaiting_analysis
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-191 | Integer Underflow (Wrap or Wraparound) |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-6rmx-9q62-4w6m | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| postgresql-interfaces/psqlodbc | security_advisory | yes | /v1/repositories/postgresql-interfaces/psqlodbc |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts