8.8

CVE-2026-16238: PostgreSQL type confusion in pg_restore_attribute_stats() executes arbitrary code

Modified
AliasesALPINE-CVE-2026-16238UBUNTU-CVE-2026-16238DEBIAN-CVE-2026-16238
Published 13-08-2026Last modified 29-08-2026

Vulnerability summary

CVE-2026-16238 is a high (CVSS 8.8) vulnerability in postgresql. EPSS estimates a 0.41% chance of exploitation in the next 30 days, higher than 37.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.41%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 10 · Related 7

Timeline

  1. 13-08-2026
    PublishedVulnerability first disclosed.
  2. 29-08-2026
    Last modifiedVulnerability information updated.

Description

Type confusion in PostgreSQL pg_restore_attribute_stats() allows an object creator to execute arbitrary code as the operating system user running the database, via conflation of range and multirange values. Within major version 18, minor versions before PostgreSQL 18.6 are affected. Versions before PostgreSQL 18 are unaffected.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.41%

Chance of exploitation in the next 30 days

Percentile

38%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.41% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine4 products
  • postgresql15< 15.19-r0
  • postgresql16< 16.15-r0
  • postgresql17< 17.11-r0
  • postgresql18< 18.5-r0
Ubuntu2 products
  • postgresql-18< 18.6-0ubuntu0.26.04.1
  • postgresql-9.3All versions (No fix recorded)
Debian1 product
  • postgresql-18< 18.6-1
Postgresql1 product
  • postgresql≥ 14.0, < 14.24 | ≥ 15.0, < 15.19 | ≥ 16.0, < 16.15 | ≥ 17.0, < 17.11 | ≥ 18.0, < 18.5

4 vendors · 8 products

References

7 links