# CVE-2023-31131: Arbitrary File Write when Extracting Tarballs in greenplum-db

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Published: 2023-05-15T21:05:49.873Z
- Modified: 2026-06-17T05:56:20.420Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Greenplum Database (GPDB) is an open source data warehouse based on PostgreSQL. In versions prior to 6.22.3 Greenplum Database used an unsafe methods to extract tar files within GPPKGs. greenplum-db is vulnerable to path traversal leading to arbitrary file writes. An attacker can use this vulnerability to overwrite data or system files potentially leading to crash or malfunction of the system. Any files which are accessible to the running process are at risk. All users are requested to upgrade to Greenplum Database version 6.23.2 or higher. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- greenplum-db gpdb: < 6.22.3
- vmware greenplum_database: before 6.22.3

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/greenplum-db/gpdb/security/advisories/GHSA-hgm9-2q42-c7f3> (vendor-advisory)
- <https://github.com/greenplum-db/gpdb/commit/1ec4affbba7c9745f64edbd80a6680ad29b09471> (patch)

## Sources

- CVE List: [CVE-2023-31131](https://www.cve.org/CVERecord?id=CVE-2023-31131), CVE Terms of Use, modified 2025-01-22
- NVD: [CVE-2023-31131](https://nvd.nist.gov/vuln/detail/CVE-2023-31131), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31131 · Whole record: https://cve.day/CVE-2023-31131.json · Rebuilt by cve.day 2026-11-25T22:58:24.187Z
