CVE-2026-2004: PostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary code
Vulnerability summary
CVE-2026-2004 is a high (CVSS 8.8) vulnerability in postgresql. EPSS estimates a 1.34% chance of exploitation in the next 30 days, higher than 71.3% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 61 · Related 31Timeline
- 12-02-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
Description
Missing validation of type of input in PostgreSQL intarray extension selectivity estimator function allows an object creator to execute arbitrary code as the operating system user running the database. Versions before PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 are affected.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.34%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
Increase +0.09 pp
From 1.26% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu7 products
- postgresql-10All versions (No fix recorded)
- postgresql-12All versions (No fix recorded)
- postgresql-14< 14.22-0ubuntu0.22.04.1
- postgresql-16< 16.13-0ubuntu0.24.04.1
- postgresql-17< 17.9-0ubuntu0.25.10.1
Alpine4 products
- postgresql15< 15.16-r0
- postgresql16< 16.12-r0
- postgresql17< 17.8-r0
- postgresql18< 18.2-r0
Debian3 products
- postgresql-15< 15.16-0+deb12u1
- postgresql-17< 17.8-0+deb13u1
- postgresql-18< 18.2-1
Chainguard1 product
- postgresql-13< 13.23-r5
Postgresql1 product
- postgresql≥ 14.0, < 14.21 | ≥ 15.0, < 15.16 | ≥ 16.0, < 16.12 | ≥ 17.0, < 17.8 | ≥ 18.0, < 18.2
Wolfi1 product
- postgresql-13< 13.23-r5
6 vendors · 17 products