---
id: "CVE-2018-25088"
page: "https://infrastack.ai/live/CVE-2018-25088"
kind: "vulnerability"
aliases: ["CVE-2018-25088", "GHSA-vghm-8cjp-hjw6"]
title: "postgraas-server vulnerable to SQL injection"
severity: "critical"
cvss: 9.8
epss: 0.00732
exploited: false
status: "open"
category: "package"
products: [{"name": "postgraas-server", "fixed": ["2.0.0"], "affected": "< 2.0.0", "ecosystem": "pypi"}, {"name": "blueyonder postgraas server", "fixed": ["2.0.0"], "affected": "< 2.0.0", "ecosystem": "vendor"}, {"name": "blueyonder postgraas server", "note": "2 beta builds", "fixed": [], "affected": ">= 2.0.0-beta.1, <= 2.0.0-beta.2", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-89", "package", "postgraas-server", "postgresql", "python", "self-hosted"]
not_affected_if: ["version-2.0.0-or-later"]
published_at: "2023-07-18T13:15:11+00:00"
first_seen_at: "2026-11-16T15:48:10+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-vghm-8cjp-hjw6", "first_seen_at": "2026-11-16T15:48:10+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-25088", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.00732, "url": "https://api.first.org/data/v1/epss?cve=CVE-2018-25088"}]
---

# postgraas-server vulnerable to SQL injection

Link for people: https://infrastack.ai/live/CVE-2018-25088 (this .md is for agents)

postgraas-server, a Python service that creates PostgreSQL databases on request, builds SQL from input without proper escaping in its database creation code. An attacker who can reach the service can inject SQL and read or change data in the databases it manages.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:postgraas-server affected < 2.0.0 fixed 2.0.0
- vendor:blueyonder postgraas server affected < 2.0.0 fixed 2.0.0
- vendor:blueyonder postgraas server affected >= 2.0.0-beta.1, <= 2.0.0-beta.2 fixed no fixed version listed

## How to check

- Check the installed version with `pip show postgraas-server`; versions below `2.0.0` are affected.
- Look for `postgraas_server/backends/postgres_cluster/postgres_cluster_driver.py` in the deployed package and review how `create_postgres_db` builds its SQL.

## Fix

- postgraas-server: upgrade to `2.0.0`

## Timeline

- 2026-11-16T15:48:10+00:00 ghsa https://github.com/advisories/GHSA-vghm-8cjp-hjw6
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2018-25088

## Documents

- [advisory] Third-party advisory: vuldb.com https://vuldb.com/?id.234246
- [fix] Patch: github.com https://github.com/blue-yonder/postgraas_server/commit/7cd8d016edc74a78af0d81c948bfafbcc93c937c
- [fix] Release: github.com https://github.com/blue-yonder/postgraas_server/releases/tag/v2.0.0

## From the sources

A vulnerability, which was classified as critical, was found in Blue Yonder postgraas_server up to 2.0.0b2. Affected is the function `_create_pg_connection/create_postgres_db` of the file `postgraas_server/backends/postgres_cluster/postgres_cluster_driver.py` of the component PostgreSQL Backend Handler. The manipulation leads to sql injection. Upgrading to version 2.0.0 is able to address this issue. The patch is identified as 7cd8d016edc74a78af0d81c948bfafbcc93c937c. It is recommended to upgrade the affected component. VDB-234246 is the identifier assigned to this vulnerability.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
