CVE-2026-6638
PostgreSQL REFRESH PUBLICATION allows SQL injection via table name
SQL injection in PostgreSQL logical replication ALTER SUBSCRIPTION ... REFRESH PUBLICATION allows a subscriber table creator to execute arbitrary SQL with the subscription's publication-side credentials. The attack takes effect at the next REFRESH PUBLICATION. Within major versions 16, 17, and 18, minor versions before PostgreSQL 18.4, 17.10, and 16.14 are affected. Versions before PostgreSQL 16 are unaffected.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.180% · 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-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 8.8 · published by [email protected]CVSS: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 · 3.7 · published by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T11:59:22.105Z
CVSS 3.1 · 3.7 · published by PostgreSQLCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:02:06.888Z
CVSS 3.1 · 3.7 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T16:01:04.591Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T11:59:22.105Z | NVD |
| epss | verified | 2026-11-19T16:04:53.982Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:02:06.850Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:02:06.888Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:02:06.888Z | CVE Program |
Affected versions and configuration
n/a PostgreSQL; default status: unaffected: 18 to < 18.4 [affected; scheme: rpm]; 17 to < 17.10 [affected; scheme: rpm]; 16 to < 16.14 [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": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "16.14-0ubuntu0.24.04.1",
"release_codename": "noble"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "postgresql-17",
"debian": "https://tracker.debian.org/pkg/postgresql-17",
"source": "https://ubuntu.com/security/cve?package=postgresql-17",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=postgresql-17",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "17.10-0ubuntu0.25.10.1",
"release_codename": "questing"
}
]
}
]Archived source JSONOSV · osv · full conditions
{
"id": "DEBIAN-CVE-2026-6638",
"aliases": [],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "17.10-0+deb13u1"
}
]
}
],
"package": {
"name": "postgresql-17",
"purl": "pkg:deb/debian/postgresql-17?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"17.5-1",
"17.6-0+deb13u1",
"17.6-1",
"17.7-0+deb13u1",
"17.8-0+deb13u1",
"17.9-0+deb13u1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-6638.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"upstream": [
"CVE-2026-6638"
],
"withdrawn": null,
"references": [
{
"url": "https://security-tracker.debian.org/tracker/CVE-2026-6638",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "PostgreSQL",
"versions": [
{
"status": "affected",
"version": "18",
"lessThan": "18.4",
"versionType": "rpm"
},
{
"status": "affected",
"version": "17",
"lessThan": "17.10",
"versionType": "rpm"
},
{
"status": "affected",
"version": "16",
"lessThan": "16.14",
"versionType": "rpm"
}
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-6638",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-05-14T15:28:21.916462Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-05-14T15:28:30.735Z"
}
}
]
}Archived source JSONNVD · nvd-cpe · full conditions
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "B58AE3D3-E1C9-45D2-AA92-A3D135B77A8A",
"versionEndExcluding": "16.14",
"versionStartIncluding": "16.0"
},
{
"criteria": "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "A19538E9-DBB9-4396-AC04-17943E82C411",
"versionEndExcluding": "17.10",
"versionStartIncluding": "17.0"
},
{
"criteria": "cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "F8DB17ED-67AD-41F2-B272-27AF5B4FA2B0",
"versionEndExcluding": "18.4",
"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.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / noble | postgresql-16 | security | 16.14-0ubuntu0.24.04.1 | Official record |
| distribution-package | Ubuntu / questing | postgresql-17 | security | 17.10-0ubuntu0.25.10.1 | Official record |
| ecosystem-boundary | Debian:13 / 13 | postgresql-17 | unknown | 17.10-0+deb13u1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- Ubuntu SecurityConsulted: 2026-11-19T16:01:04.591ZArchived source JSON
Source publication: 2026-05-14T14:16:00.000Z
Source modification: 2026-05-22T18:08:49.250ZDocument fingerprint
626ff5adfd1cddae17609108d0c5e70e7120a662a2f4515dec8f53e2de3cf1cb - CVE ProgramConsulted: 2026-11-19T12:02:06.888ZArchived source JSON
Source publication: 2026-05-14T13:00:15.848Z
Source modification: 2026-05-14T15:28:30.735ZDocument fingerprint
2b700a5be66f4007d895e92888ade3ebc8054a18b4d830572b5bbe748cd4e586 - NVDConsulted: 2026-11-19T11:59:22.105ZArchived source JSON
Source publication: 2026-05-14T14:16:25.937Z
Source modification: 2026-11-11T20:10:00.273ZDocument fingerprint
5c882f6879ff506d585bf6d0a8c0540d2a18c104af820ca42cefc5bfdb044bbe - OSVConsulted: 2026-11-19T12:52:08.472ZArchived source JSON
Source publication: 2026-05-14T14:16:25.937Z
Source modification: 2026-11-12T09:47:37.112ZDocument fingerprint
f99aedadc224159839f616997f8960cddd28c97207494f9c647b7c1e87e10fac - Ubuntu SecurityConsulted: 2026-11-19T16:02:06.850ZArchived source JSON
Source publication: 2026-05-14T14:16:00.000Z
Source modification: 2026-05-22T18:08:49.250ZDocument fingerprint
a097c31c9173e1b05d9529d55cb7e458dd161299a42ed80b80b00dc720b5664a - FIRST EPSSConsulted: 2026-11-19T16:04:53.982ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
02f716adbfe8e4b3cb0489a50d5e3ba9c4249656218c1bd7ac535713ed705366 - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence