{"id":"CVE-2026-122042","state":"PUBLISHED","title":"WarehousePG (WHPG) 6.27.1 through 6.27.7 and 7.2.1 through 7.6.1 are affected by an out-of-bounds write vulnerability (CWE-787) in gpfdist, the file server used to load and unload ","description":"WarehousePG (WHPG) 6.27.1 through 6.27.7 and 7.2.1 through 7.6.1 are affected by an out-of-bounds write vulnerability (CWE-787) in gpfdist, the file server used to load and unload external tables. When gpfdist attaches a request to a session, it sizes two internal arrays from the client-supplied X-GP-SEGMENT-COUNT header and writes to them at the index given by the X-GP-SEGMENT-ID header, without checking that the index is non-negative and smaller than the count (CWE-129). gpfdist does not authenticate callers unless gpfdists is used with client certificate verification, so an attacker who can reach the gpfdist port can crash it with a single HTTP request, failing every external table load or unload that uses that gpfdist instance. gpfdist is normally reachable only from the cluster's internal network.","publishedAt":"2026-11-18T14:05:19.263Z","updatedAt":"2026-11-19T16:58:29.327Z","severity":{"score":7.1,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","source":"EDB"},"assigner":"EDB","products":["EnterpriseDB WarehousePG"],"affected":[{"vendor":"EnterpriseDB","product":"WarehousePG","defaultStatus":"unaffected","versions":[{"version":"6.27.1","status":"affected","lessThan":"6.27.8","versionType":"custom"},{"version":"7.2.1","status":"affected","lessThan":"7.6.2","versionType":"custom"}],"repo":"https://github.com/warehouse-pg/warehouse-pg","programFiles":["src/bin/gpfdist/gpfdist.c"]}],"references":["https://www.enterprisedb.com/docs/security/advisories/cve2026122042/","https://github.com/warehouse-pg/warehouse-pg/pull/370","https://github.com/warehouse-pg/warehouse-pg/pull/371"],"weaknesses":["CWE-787","CWE-129"],"ingestedAt":"2026-11-19T17:08:06.698Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/122xxx/CVE-2026-122042.json","commit":"4c009220f033886c19683d459ba1ca00b46d8ddc","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-122042","state":"PUBLISHED","datePublished":"2026-11-18T14:05:19.263Z","dateUpdated":"2026-11-19T16:58:29.327Z","assignerShortName":"EDB","assignerOrgId":"20be33e2-bf35-4d13-8fad-18bd2f3e3659","dateReserved":"2026-11-04T15:28:17.841Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"WarehousePG (WHPG) 6.27.1 through 6.27.7 and 7.2.1 through 7.6.1 are affected by an out-of-bounds write vulnerability (CWE-787) in gpfdist, the file server used to load and unload external tables. When gpfdist attaches a request to a session, it sizes two internal arrays from the client-supplied X-GP-SEGMENT-COUNT header and writes to them at the index given by the X-GP-SEGMENT-ID header, without checking that the index is non-negative and smaller than the count (CWE-129). gpfdist does not authenticate callers unless gpfdists is used with client certificate verification, so an attacker who can reach the gpfdist port can crash it with a single HTTP request, failing every external table load or unload that uses that gpfdist instance. gpfdist is normally reachable only from the cluster's internal network."}],"affected":[{"vendor":"EnterpriseDB","product":"WarehousePG","defaultStatus":"unaffected","versions":[{"version":"6.27.1","status":"affected","lessThan":"6.27.8","versionType":"custom"},{"version":"7.2.1","status":"affected","lessThan":"7.6.2","versionType":"custom"}],"repo":"https://github.com/warehouse-pg/warehouse-pg","programFiles":["src/bin/gpfdist/gpfdist.c"]}],"references":[{"url":"https://www.enterprisedb.com/docs/security/advisories/cve2026122042/"},{"url":"https://github.com/warehouse-pg/warehouse-pg/pull/370"},{"url":"https://github.com/warehouse-pg/warehouse-pg/pull/371"}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","baseScore":7.1,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787 Out-of-bounds Write","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-129","lang":"en","description":"CWE-129 Improper Validation of Array Index","type":"CWE"}]}],"providerMetadata":{"shortName":"EDB","orgId":"20be33e2-bf35-4d13-8fad-18bd2f3e3659","dateUpdated":"2026-11-18T14:05:19.263Z"},"source":{"discovery":"EXTERNAL"},"credits":[{"lang":"en","value":"kta1kri","type":"finder"}],"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T16:58:19.494752Z","id":"CVE-2026-122042","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-19T16:58:29.327Z"}}]}}}