CVE-2026-16238
PostgreSQL type confusion in pg_restore_attribute_stats() executes arbitrary code
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.414% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 8.8 · published by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T11:59:22.105Z
CVSS 3.1 · 8.8 · published by PostgreSQLCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T12:01:43.670Z
CVSS 3.1 · 8.8 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T16:01:41.161Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T11:59:22.105Z | NVD |
| epss | verified | 2026-11-19T16:04:47.342Z | FIRST EPSS |
| patches | unknown | unknown | unknown |
| affected | verified | 2026-11-19T12:01:43.670Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:01:43.670Z | CVE Program |
Affected versions and configuration
n/a PostgreSQL; default status: unaffected: 18 to < 18.6 [affected; scheme: rpm]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "postgresql-16",
"debian": "https://tracker.debian.org/pkg/postgresql-16",
"source": "https://ubuntu.com/security/cve?package=postgresql-16",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=postgresql-16",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "18+ only",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "18+ only",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "PostgreSQL",
"versions": [
{
"status": "affected",
"version": "18",
"lessThan": "18.6",
"versionType": "rpm"
}
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-16238",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2026-08-13T00:00:00+00:00"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-08-14T03:55:36.042Z"
}
}
]
}Archived source JSONNVD · nvd-cpe · full conditions
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "6BEE5714-C2EF-48DC-8613-C3EAA149E12E",
"versionEndExcluding": "14.24",
"versionStartIncluding": "14.0"
},
{
"criteria": "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "F433746A-733F-4ED0-9913-8AF69E0C8BF2",
"versionEndExcluding": "15.19",
"versionStartIncluding": "15.0"
},
{
"criteria": "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "1996B91F-E0B2-4A78-8788-E17EA68D179C",
"versionEndExcluding": "16.15",
"versionStartIncluding": "16.0"
},
{
"criteria": "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "3D04E642-71D7-4979-AA19-B9CCDEFD8C31",
"versionEndExcluding": "17.11",
"versionStartIncluding": "17.0"
},
{
"criteria": "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "8494F67B-673A-4E1F-8F40-D24DCC1F8DA4",
"versionEndExcluding": "18.5",
"versionStartIncluding": "18.0"
}
],
"operator": "OR"
}
]
}
]Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
No correction has been verified in the connected records. This does not mean the system is secure or that no vendor correction exists.
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- NVDConsulted: 2026-11-19T11:59:22.105ZArchived source JSON
Source publication: 2026-08-13T13:17:46.383Z
Source modification: 2026-08-29T23:17:19.083ZDocument fingerprint
5c882f6879ff506d585bf6d0a8c0540d2a18c104af820ca42cefc5bfdb044bbe - CVE ProgramConsulted: 2026-11-19T12:01:43.670ZArchived source JSON
Source publication: 2026-08-13T13:00:12.450Z
Source modification: 2026-08-29T23:07:28.490ZDocument fingerprint
6617f24461a35d6f2e7c81ec2ecac3987a7c133099b5388e26e624ab33e14498 - Ubuntu SecurityConsulted: 2026-11-19T16:01:41.161ZArchived source JSON
Source publication: 2026-08-13T13:17:00.000Z
Source modification: 2026-09-02T21:02:44.341ZDocument fingerprint
242e2ec7a2a434b8bc67e11ed1288c5dea370c266eb5b83f7aa9f5bb6a43f679 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:47.342ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
003916460c2793c49861244c6d747c5f7b21d769f81d58483e4fe03eb7a3f759
Official status history
- UNKNOWN → PUBLISHED · · evidence