CVE-2026-116317
8.8HighPublished 12 Nov 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-122
What an attacker gets
Authenticated database users can execute arbitrary code as the PostgreSQL system user. This requires the ability to execute SQL commands that trigger the ts_rank_cd function with a malicious tsvector.
Root cause
A heap-based buffer overflow occurs in the ts_rank_cd function when processing tsvectors that contain duplicate positions.
Affected versions
PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25.
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to PostgreSQL 18.7, 17.12, 16.16, 15.20, 14.25 or later. If you cannot patch immediately, restrict the execution of ts_rank_cd to trusted database roles.
$ sudo apt-get update && sudo apt-get install --only-upgrade postgresqlAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
Heap-based buffer overflow in PostgreSQL ts_rank_cd() may allow a database user to execute arbitrary code as the operating system user running the database, via an invalid tsvector containing duplicate positions. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.