# CVE-2026-122042: 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 (…

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-30)
- **CWE:** CWE-787, CWE-129
- **Published:** 2026-11-18T14:05:19.263Z
- **Modified:** 2026-11-23T16:24:48.897Z

## Who should check

- Anyone running EnterpriseDB WarehousePG \>= 6.27.1, \< 6.27.8; \>= 7.2.1, \< 7.6.2

## 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.

## Affected and fixed versions

- EnterpriseDB WarehousePG: \>= 6.27.1, \< 6.27.8; \>= 7.2.1, \< 7.6.2 (cvelist)

## Mitigation

- Upgrade WarehousePG to 7.6.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-122042. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-122042.md
Affected: EnterpriseDB WarehousePG >= 6.27.1, < 6.27.8; >= 7.2.1, < 7.6.2
Fixed in: EnterpriseDB WarehousePG 6.27.8, EnterpriseDB WarehousePG 7.6.2

Steps:
1. Search this machine and project for EnterpriseDB WarehousePG: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-122042 being exploited?

There is no confirmed exploitation: CVE-2026-122042 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-30).

### How serious is CVE-2026-122042?

High: CVSS 7.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-122042?

EnterpriseDB WarehousePG \>= 6.27.1, \< 6.27.8; \>= 7.2.1, \< 7.6.2.

### Is there a fix for CVE-2026-122042?

Yes. Fixed in EnterpriseDB WarehousePG 6.27.8, EnterpriseDB WarehousePG 7.6.2. Upgrade WarehousePG to 7.6.2 or later.

### How do I check if I'm affected by CVE-2026-122042?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/warehouse-pg/warehouse-pg/pull/370>
- patch: <https://github.com/warehouse-pg/warehouse-pg/pull/371>
- other: <https://www.enterprisedb.com/docs/security/advisories/cve2026122042/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-122042>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-122042> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-122042>
