Skip to content
Noroxi
NVD / CVE Program· CNA PostgreSQL

CVE-2026-2004: PostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary code

HighCVSS 8.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 35/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 1.3% (FIRST EPSS); higher than 71.3% of all records.
  • Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: n/a PostgreSQL 14.21, 15.16, 16.12.

Low priority for now. Upgrade to n/a PostgreSQL 14.21, 15.16, 16.12 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Feb 12, 2026
Updated
Jul 15, 2026
EPSS
1.3% · 71th percentile

Report tools

JSON

Action score

35

Monitor

Low priority for now.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.3%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · PostgreSQL
8.8
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2026-2004

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Is PostgreSQL on your server exposed to the internet?Run a port scan

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Is PostgreSQL on your server exposed to the internet?Run a port scan

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
postgresqlpostgresql

Using postgresql? Add it to your stack and be the first to know about CVEs like this one. (PostgreSQL)

Watch new CVEs for postgresql

When you'll hear from us

  • when a new CVE affecting this product is published
  • when a record in your stack enters KEV or is weaponized

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Is PostgreSQL on your server exposed to the internet?Run a port scan

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is PostgreSQL on your server exposed to the internet?

The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.

Run a port scan

Versions reported by the vendor

Affected version ranges reported by the assigning authority (PostgreSQL). Independent of NVD's CPE analysis and usually ahead of it.

  • n/a PostgreSQL

    • 18 and later · before 18.2affected · rpm
    • 17 and later · before 17.8affected · rpm
    • 16 and later · before 16.12affected · rpm
    • 15 and later · before 15.16affected · rpm
    • before 14.21affected · rpm

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:10postgresqlbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-contribbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-docsbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-plperlbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-plpython3before 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-pltclbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-private-develbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-private-libsbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-serverbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-server-develbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-staticbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-testbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-test-rpm-macrosbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-test-rpm-macrosbefore 16.13-1.el10_116.13-1.el10_1
AlmaLinux:10postgresql-upgradebefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql-upgrade-develbefore 16.13-1.el10_216.13-1.el10_2
AlmaLinux:10postgresql18before 18.3-1.el10_218.3-1.el10_2
AlmaLinux:10postgresql18-contribbefore 18.3-1.el10_218.3-1.el10_2
AlmaLinux:10postgresql18-docsbefore 18.3-1.el10_218.3-1.el10_2
AlmaLinux:10postgresql18-plperlbefore 18.3-1.el10_218.3-1.el10_2
AlmaLinux:10postgresql18-plpython3before 18.3-1.el10_218.3-1.el10_2
AlmaLinux:10postgresql18-private-develbefore 18.3-1.el10_218.3-1.el10_2
AlmaLinux:10postgresql18-private-libsbefore 18.3-1.el10_218.3-1.el10_2
AlmaLinux:10postgresql18-serverbefore 18.3-1.el10_218.3-1.el10_2

+96

Other highest-scoring records for the same primary product.

  • CVE-2017-7546PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allowing remote…
    57Plan
  • CVE-2019-9193In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_server_program' group to…
    55Plan
  • CVE-2020-25695A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24.
    49Plan

Published before and after this one in the same product

  • ← EarlierCVE-2024-10979Nov 14, 2024 · PostgreSQL PL/Perl environment variable changes execute arbitrary code
    36Monitor
  • ← EarlierCVE-2026-2003Feb 12, 2026 · PostgreSQL oidvector discloses a few bytes of memory
    17Monitor
  • Later →CVE-2026-2005Feb 12, 2026 · PostgreSQL pgcrypto heap buffer overflow executes arbitrary code
    35Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
n/a PostgreSQL14.21Vendor (CNA)
n/a PostgreSQL15.16Vendor (CNA)
n/a PostgreSQL16.12Vendor (CNA)
n/a PostgreSQL17.8Vendor (CNA)
n/a PostgreSQL18.2Vendor (CNA)
almalinux:postgresql1818.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-contrib18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-docs18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-plperl18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-plpython318.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-private-devel18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-private-libs18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-server18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-server-devel18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-static18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-test18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
almalinux:postgresql18-test-rpm-macros18.3-1.el10_2 · AlmaLinux:10Package registry (OSV)
alpine:postgresql1515.16-r0 · Alpine:v3.20Package registry (OSV)
alpine:postgresql1616.12-r0 · Alpine:v3.20Package registry (OSV)
alpine:postgresql1717.8-r0 · Alpine:v3.21Package registry (OSV)
alpine:postgresql1818.2-r0 · Alpine:v3.23Package registry (OSV)
debian:postgresql-1515.16-0+deb12u1 · Debian:12Package registry (OSV)
debian:postgresql-1717.8-0+deb13u1 · Debian:13Package registry (OSV)
debian:postgresql-1818.2-1 · Debian:14Package registry (OSV)
opensuse:postgresql1414.22-150600.16.28.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:postgresql1515.17-150600.16.28.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:postgresql1616.13-150600.16.30.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:postgresql1717.9-150600.13.24.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:postgresql1818.3-150600.13.8.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:postgresql18-mini18.3-160000.1.1 · openSUSE:Leap 16.0Package registry (OSV)

+30

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2026-20030 days apartPostgreSQL oidvector discloses a few bytes of memory
    17Monitor

Not on record for this CVE: EPSS history · patch commit or PR link · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records