{"id":"CVE-2026-122042","details":"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.","modified":"2026-11-19T21:00:30.548253122Z","published":"2026-11-18T14:17:29.320Z","database_specific":{},"references":[{"type":"ADVISORY","url":"https://www.enterprisedb.com/docs/security/advisories/cve2026122042/"},{"type":"FIX","url":"https://github.com/warehouse-pg/warehouse-pg/pull/370"},{"type":"FIX","url":"https://github.com/warehouse-pg/warehouse-pg/pull/371"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/warehouse-pg/warehouse-pg","events":[{"introduced":"ab5a612bfdc355ad2d601860dfb70a47778c8dd7"},{"last_affected":"3aff4ce7544682c46ebfb6e422d5a5115bf44e55"},{"introduced":"f9b5481f7328ca0843587311d208be1f0334d155"},{"last_affected":"ad930c66c7a6d709fae8552533bb28646120cdc1"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"6.27.1"},{"last_affected":"6.27.7"}],"source":"DESCRIPTION"},{"range":[{"introduced":"7.2.1"},{"last_affected":"7.6.1"}],"source":"DESCRIPTION"}]}}],"versions":["6.27.7-WHPG","7.6.1-WHPG","7.6.0-WHPG","6.27.6-WHPG","6.27.5-WHPG","7.5.0-WHPG","7.4.0-WHPG","6.27.4-WHPG","6.27.3-WHPG","6.27.2-WHPG","7.3.0-WHPG","7.2.1-WHPG","6.27.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-122042.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}